summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinfried Donkers <osc@dci-electronics.nl>2013-01-14 19:53:10 +0100
committerMichael Stahl <mstahl@redhat.com>2013-01-15 16:06:05 +0100
commit5aadc1cf65841ce8737ec6602dcc3751e368c395 (patch)
tree6c4a898ac98ecba5a6ffd635966ab9fa28f3efdf
parentf0b733be07a8ea79b65489e0a46b86736436185c (diff)
fdo#40465 solve regression when zooming with cursor not visible
Change-Id: If8dfff1a27218c7821823fcad04bab9f924fec70 (cherry picked from commit fa058a4cd6580d5538c49d565499fb5cc4ecfe53) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/source/ui/uiview/viewmdi.cxx7
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,