Blame SOURCES/0192-sc-tiled-rendering-no-need-to-show-this-dialog.patch

135360
From 13b160581f9f3ebdb1c21722e4e6f9783e0e0775 Mon Sep 17 00:00:00 2001
135360
From: Miklos Vajna <vmiklos@collabora.co.uk>
135360
Date: Thu, 8 Oct 2015 10:07:46 +0200
135360
Subject: [PATCH 192/398] sc tiled rendering: no need to show this dialog
135360
135360
And it just causes problems during unit testing.
135360
135360
Change-Id: Ie8524b726ae2709bab707df9b2984f07357e3059
135360
(cherry picked from commit dd7d97589bcbed22cf2dd12b574fc28baedf24af)
135360
---
135360
 sc/source/ui/view/viewfun2.cxx | 3 ++-
135360
 1 file changed, 2 insertions(+), 1 deletion(-)
135360
135360
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
135360
index 295d3dbcbf44..555492f17538 100644
135360
--- a/sc/source/ui/view/viewfun2.cxx
135360
+++ b/sc/source/ui/view/viewfun2.cxx
135360
@@ -86,6 +86,7 @@
135360
 #include <columnspanset.hxx>
135360
 #include <rowheightcontext.hxx>
135360
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
135360
+#include <comphelper/lok.hxx>
135360
 
135360
 #include <boost/scoped_ptr.hpp>
135360
 #include <vector>
135360
@@ -1737,7 +1738,7 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
135360
             if (nCommand == SvxSearchCmd::FIND_ALL || nCommand == SvxSearchCmd::REPLACE_ALL)
135360
             {
135360
                 SfxViewFrame* pViewFrm = SfxViewFrame::Current();
135360
-                if (pViewFrm)
135360
+                if (pViewFrm && !comphelper::LibreOfficeKit::isActive())
135360
                 {
135360
                     pViewFrm->ShowChildWindow(sc::SearchResultsDlgWrapper::GetChildWindowId(), true);
135360
                     SfxChildWindow* pWnd = pViewFrm->GetChildWindow(sc::SearchResultsDlgWrapper::GetChildWindowId());
135360
-- 
135360
2.12.0
135360