diff options
Diffstat (limited to 'sd/source/ui/view/Outliner.cxx')
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 9b7322c369a9..f1031f809e36 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -648,7 +648,7 @@ bool Outliner::SearchAndReplaceAll() do { bFoundMatch = ! SearchAndReplaceOnce(&aSelections); - if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && pViewShell->GetDoc()->isTiledRendering() && bFoundMatch && aSelections.size() == 1) + if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && comphelper::LibreOfficeKit::isActive() && bFoundMatch && aSelections.size() == 1) { // Without this, RememberStartPosition() will think it already has a remembered position. mnStartPageIndex = (sal_uInt16)-1; @@ -661,7 +661,7 @@ bool Outliner::SearchAndReplaceAll() } while (bFoundMatch); - if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && pViewShell->GetDoc()->isTiledRendering() && !aSelections.empty()) + if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && comphelper::LibreOfficeKit::isActive() && !aSelections.empty()) { boost::property_tree::ptree aTree; aTree.put("searchString", mpSearchItem->GetSearchString().toUtf8().getStr()); @@ -689,7 +689,7 @@ bool Outliner::SearchAndReplaceAll() RestoreStartPosition (); - if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && pViewShell->GetDoc()->isTiledRendering() && !bRet) + if (mpSearchItem->GetCommand() == SvxSearchCmd::FIND_ALL && comphelper::LibreOfficeKit::isActive() && !bRet) { // Find-all, tiled rendering and we have at least one match. OString aPayload = OString::number(mnStartPageIndex); @@ -811,7 +811,7 @@ bool Outliner::SearchAndReplaceOnce(std::vector<SearchSelection>* pSelections) mpDrawDocument->GetDocSh()->SetWaitCursor( false ); - if (pViewShell && pViewShell->GetDoc()->isTiledRendering() && mbStringFound) + if (pViewShell && comphelper::LibreOfficeKit::isActive() && mbStringFound) { std::vector<Rectangle> aLogicRects; pOutlinerView->GetSelectionRectangles(aLogicRects); |