From eefccb4a103729e73ba7dcb512c615bc161d7b2b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 14 Sep 2016 12:51:05 +0200 Subject: sd lok draw text: make sure watching views have no cursors These additional views are only created to follow the updates done in the editing view, not to contribute additional cursors. With this, if the first view edits a shape text and the second view is created, then no unwanted text view cursor is created in the first view for the shape text from the second view. Be precise in the unit test and make sure that cursors from all views are hidden, because even without a fix the cursor of view #2 is hidden, but not from view #3, so the test wouldn't fail without the fix. (But hardcoding the 0-1 and 2-3 view IDs exposed by Impress before/after initializeForRendering() would be ugly.) Change-Id: Idf64f7bfcc35c98a5eada9a0a523a9b45b65a211 --- svx/source/svdraw/svdedxv.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svx') diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 323b4a869183..c06c22ee41ee 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -158,6 +158,7 @@ SdrPageView* SdrObjEditView::ShowSdrPage(SdrPage* pPage) // registers the view shell of this draw view, and not the view // shell of pView. OutlinerView* pOutlinerView = pView->ImpMakeOutlinerView(static_cast(pOutDev), !bEmpty, nullptr, GetSfxViewShell()); + pOutlinerView->HideCursor(); pView->GetTextEditOutliner()->InsertView(pOutlinerView); } } @@ -911,6 +912,7 @@ bool SdrObjEditView::SdrBeginTextEdit( if(&rOutDev != pWin && OUTDEV_WINDOW == rOutDev.GetOutDevType()) { OutlinerView* pOutlView = ImpMakeOutlinerView(static_cast(&rOutDev), !bEmpty, nullptr); + pOutlView->HideCursor(); pTextEditOutliner->InsertView(pOutlView); } } -- cgit