From 54bb28b8ec9caaf57026e5de0c7c1d66af475415 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 9 Apr 2021 20:50:58 +0100 Subject: Resolves: tdf#139075 diagonal focus rects contain focus rects of old size since... commit 356f6c5d89dd4dd92b2351898e07f99b96cb34cc Date: Tue Jan 15 08:55:00 2013 +0000 teach FrameSelector to be resizable Change-Id: I5ac4d1d12f60086349e7dbb3b78d29977f22c226 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113857 Tested-by: Jenkins Reviewed-by: Michael Stahl --- svx/source/dialog/frmsel.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx index b4d80e2f759d..82dd43af9f17 100644 --- a/svx/source/dialog/frmsel.cxx +++ b/svx/source/dialog/frmsel.cxx @@ -409,6 +409,9 @@ void FrameSelectorImpl::InitBorderGeometry() maHor.AddFocusPolygon( tools::Rectangle( mnLine1 - mnFocusOffs, mnLine2 - mnFocusOffs, mnLine3 + mnFocusOffs, mnLine2 + mnFocusOffs ) ); maBottom.AddFocusPolygon( tools::Rectangle( mnLine1 - mnFocusOffs, mnLine3 - mnFocusOffs, mnLine3 + mnFocusOffs, mnLine3 + mnFocusOffs ) ); + maTLBR.ClearFocusArea(); + maBLTR.ClearFocusArea(); + for( nCol = 0, nCols = maArray.GetColCount(); nCol < nCols; ++nCol ) { for( nRow = 0, nRows = maArray.GetRowCount(); nRow < nRows; ++nRow ) -- cgit