sw/source/uibase/docvw/edtwin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 38b6e89c9483fdfe3d26bef3b25f890528aef84e Author: László Németh <nem...@numbertext.org> AuthorDate: Mon Apr 29 21:39:41 2024 +0200 Commit: László Németh <nem...@numbertext.org> CommitDate: Tue Apr 30 23:02:01 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> diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index c0d4a0837f17..b50c67811774 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -3159,8 +3159,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 ) @@ -4033,8 +4032,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;