From 4d3f92aa18d3419f861986a610e618c8f09b6ae2 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Sun, 6 Aug 2017 00:26:35 +0200 Subject: editviewoverlay: EditViewSelection reorganized The Selection visualization in EditVierw is organized to use XOR for visualization, thus DrawSelection is used e.g. before and after changes to the Selection. Ensured athat all changers of selection have to use SetEditSelection by making return of GetEditSelection const. This allows to use a central and safe SelectionChanged which is needed for alternatives of Selection visualization. Change-Id: I994553f3be6b58fd595aa500922d8d1d8ddd36d4 --- sd/source/ui/view/ViewShellBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 9899c6f0314a..7ec564cc24b2 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -996,7 +996,7 @@ void ViewShellBase::NotifyCursor(SfxViewShell* pOtherShell) const rEditView.ShowCursor(); rEditView.RegisterOtherShell(nullptr); // Text selection, if any. - rEditView.DrawSelection(pOtherShell); + rEditView.DrawSelectionXOR(pOtherShell); // Shape text lock. if (OutlinerView* pOutlinerView = pDrawView->GetTextEditOutlinerView()) -- cgit