Kaydet (Commit) dfbaca49 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst caef2a4f
...@@ -901,25 +901,6 @@ void Outliner::RestoreStartPosition() ...@@ -901,25 +901,6 @@ void Outliner::RestoreStartPosition()
SetViewMode (meStartViewMode); SetViewMode (meStartViewMode);
if (pDrawViewShell.get() != NULL) if (pDrawViewShell.get() != NULL)
SetPage (meStartEditMode, mnStartPageIndex); 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)) else if (pViewShell->ISA(OutlineViewShell))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment