summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-05-31 20:33:36 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-31 20:35:33 +0200
commit332e3d4bc9f52538af18eabb1654720ef8c67dba (patch)
tree4072d35dc24ad6c6869b2a9aed538bf793fbec98 /sd
parent285b5ef45817fe20d3bf9613e0247d395b7c880d (diff)
lok: Don't attempt to select the exact text after a failed search.
This is a waste - it gets unselected in the end anyway, and causes problems for LibreOfficeKit. Change-Id: I9fea5853fc8fb177b31c77c097e96c51f93a0d7d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/Outliner.cxx19
1 files changed, 0 insertions, 19 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 3e50e513a3ef..e073118c4a8f 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -903,25 +903,6 @@ void Outliner::RestoreStartPosition()
SetViewMode (meStartViewMode);
if (pDrawViewShell.get() != NULL)
SetPage (meStartEditMode, mnStartPageIndex);
-
- if (mpStartEditedObject != NULL)
- {
- // Turn on the text toolbar as it is done in FuText so that
- // undo manager setting/restoring in
- // sd::View::{Beg,End}TextEdit() works on the same view shell.
- pViewShell->GetViewShellBase().GetToolBarManager()->SetToolBarShell(
- ToolBarManager::TBG_FUNCTION,
- RID_DRAW_TEXT_TOOLBOX);
-
- mpView->SdrBeginTextEdit(mpStartEditedObject);
- ::Outliner* pOutliner =
- static_cast<DrawView*>(mpView)->GetTextEditOutliner();
- if (pOutliner!=NULL && pOutliner->GetViewCount()>0)
- {
- OutlinerView* pOutlinerView = pOutliner->GetView(0);
- pOutlinerView->SetSelection(maStartSelection);
- }
- }
}
else if (pViewShell->ISA(OutlineViewShell))
{