diff options
author | Winfried Donkers <osc@dci-electronics.nl> | 2013-01-14 19:53:10 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-01-15 15:51:37 +0000 |
commit | 6b3ef9d4787a4aab7ad055c5221bbdf002c36297 (patch) | |
tree | 5fb35530f5abea682896dfd75de92702f00040a3 | |
parent | dc095dcaab40fa896e5d3aa1b10aa06b3922ce89 (diff) |
fdo#40465 solve regression when zooming with cursor not visible
(cherry picked from commit fa058a4cd6580d5538c49d565499fb5cc4ecfe53)
Signed-off-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 5aadc1cf65841ce8737ec6602dcc3751e368c395)
Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70
baf7879ddba3c052e9bfc9a81359cd187c923845
Reviewed-on: https://gerrit.libreoffice.org/1698
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
-rw-r--r-- | sw/source/ui/uiview/viewmdi.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx index f6004619c442..ac68198dcd48 100644 --- a/sw/source/ui/uiview/viewmdi.cxx +++ b/sw/source/ui/uiview/viewmdi.cxx @@ -73,10 +73,11 @@ using namespace ::com::sun::star::frame; 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, |