sw/source/uibase/docvw/edtwin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 95fdda2f027f2bcdd135b3f55c549d6f2339e086 Author: László Németh <nem...@numbertext.org> AuthorDate: Mon Apr 29 21:39:41 2024 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Tue May 14 11:06:09 2024 +0200 tdf#160836 sw: fix narrow selection area of cell border Remove ShouldObjectBeSelected() condition to fix the selection area around the horizontal border. (Its purpose was to avoid of selection of the border, when covered by an image: but that would be !ShouldObjectBeSelected(), with the same problem: halved selection area.) Clean-up commit commit 30de13743f144aced83bc43d310592f82788c910 "tdf#160836 sw: resize rows at images cropped by row height". Change-Id: I6c812a150b67431c7ea3131f29489bda919c1724 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166877 Tested-by: Jenkins Reviewed-by: László Németh <nem...@numbertext.org> (cherry picked from commit 38b6e89c9483fdfe3d26bef3b25f890528aef84e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167211 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 9aa4862a43a4..c06276027582 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -3118,8 +3118,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) SwTab::COL_NONE != (nMouseTabCol = rSh.WhichMouseTabCol( aDocPos ) ) && ( !rSh.IsObjSelectable( aDocPos ) || // allow resizing row height, if the image is anchored as character in the cell - ( rSh.ShouldObjectBeSelected(aDocPos) && - !( SwTab::COL_VERT == nMouseTabCol || SwTab::COL_HORI == nMouseTabCol ) ) ) ) + !( SwTab::COL_VERT == nMouseTabCol || SwTab::COL_HORI == nMouseTabCol ) ) ) { // Enhanced table selection if ( SwTab::SEL_HORI <= nMouseTabCol && SwTab::COLSEL_VERT >= nMouseTabCol ) @@ -3992,8 +3991,7 @@ bool SwEditWin::changeMousePointer(Point const & rDocPoint) if ( SwTab::COL_NONE != (nMouseTabCol = rShell.WhichMouseTabCol( rDocPoint ) ) && ( !rShell.IsObjSelectable( rDocPoint ) || // allow resizing row height, if the image is anchored as character in the cell - ( rShell.ShouldObjectBeSelected(rDocPoint) && - !( SwTab::COL_VERT == nMouseTabCol || SwTab::COL_HORI == nMouseTabCol ) ) ) ) + !( SwTab::COL_VERT == nMouseTabCol || SwTab::COL_HORI == nMouseTabCol ) ) ) { PointerStyle nPointer = PointerStyle::Null; bool bChkTableSel = false;