Hi, I have submitted a patch for review:
https://gerrit.libreoffice.org/1698 To pull it, you can do: git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/98/1698/1 fdo#40465 solve regression when zooming with cursor not visible (cherry picked from commit fa058a4cd6580d5538c49d565499fb5cc4ecfe53) Signed-off-by: Michael Stahl <mst...@redhat.com> (cherry picked from commit 5aadc1cf65841ce8737ec6602dcc3751e368c395) Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70 baf7879ddba3c052e9bfc9a81359cd187c923845 --- M sw/source/ui/uiview/viewmdi.cxx 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx index f600461..ac68198 100644 --- a/sw/source/ui/uiview/viewmdi.cxx +++ b/sw/source/ui/uiview/viewmdi.cxx @@ -73,10 +73,11 @@ void SwView::SetZoom( SvxZoomType eZoomType, short nFactor, sal_Bool bViewOnly ) { + bool const bCrsrIsVisible(pWrtShell->IsCrsrVisible()); _SetZoom( GetEditWin().GetOutputSizePixel(), eZoomType, nFactor, bViewOnly ); - - //fdo40465 force the cursor to stay in view whilst zooming - pWrtShell->ShowCrsr(); + // fdo#40465 force the cursor to stay in view whilst zooming + if (bCrsrIsVisible) + pWrtShell->ShowCrsr(); } void SwView::_SetZoom( const Size &rEditSize, SvxZoomType eZoomType, -- To view, visit https://gerrit.libreoffice.org/1698 To unsubscribe, visit https://gerrit.libreoffice.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70 Gerrit-PatchSet: 1 Gerrit-Project: core Gerrit-Branch: libreoffice-3-6-5 Gerrit-Owner: Michael Stahl <mst...@redhat.com> Gerrit-Reviewer: Winfried Donkers <o...@dci-electronics.nl> _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice