From 46dac6598b066a43db851a5764778cfa1207e97d Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 11 Mar 2016 19:50:59 +0900 Subject: Resolves tdf#88485: Allow to select rightmost symbols in the dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit by adjusting target area with proper offsets. Change-Id: I66100c898354909623991c3af3e78287d6f5a9a0 Reviewed-on: https://gerrit.libreoffice.org/23147 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara (cherry picked from commit e7e1d50fc0c8077be9d9603eab8ef86098c9aa24) Reviewed-on: https://gerrit.libreoffice.org/23158 --- starmath/source/dialog.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index e0431796750c..6a97fba67d6d 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1185,6 +1185,8 @@ void SmShowSymbolSetWindow::MouseButtonDown(const MouseEvent& rMEvt) GrabFocus(); Size aOutputSize(nColumns * nLen, nRows * nLen); + aOutputSize.Width() += nXOffset; + aOutputSize.Height() += nYOffset; Point aPoint(rMEvt.GetPosPixel()); aPoint.X() -= nXOffset; aPoint.Y() -= nYOffset; -- cgit