summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2016-01-11 16:43:02 +0100
committerMarco Cecchetti <mrcekets@gmail.com>2016-01-11 22:16:33 +0000
commitd6f1ca24932ba85607ba3e526c5721132cd39252 (patch)
treea9f30f18f71068dca089ceb61289d8f2a5fe99d0 /sd
parent8d8ddea6934f6ee0f23109fc574c02a0c8a247fd (diff)
lool - search all - unit test failure - solved
Change-Id: I5a74dd60f61fc0fdb88f08383d579b14222aa55d Reviewed-on: https://gerrit.libreoffice.org/21365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/tiledrendering/tiledrendering.cxx2
-rw-r--r--sd/source/ui/view/Outliner.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/qa/unit/tiledrendering/tiledrendering.cxx b/sd/qa/unit/tiledrendering/tiledrendering.cxx
index b3ac27e263c3..7c14fa963a4e 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering.cxx
@@ -442,7 +442,6 @@ void SdTiledRenderingTest::testSearchAll()
void SdTiledRenderingTest::testSearchAllSelections()
{
-#if 0
SdXImpressDocument* pXImpressDocument = createDoc("search-all.odp");
pXImpressDocument->registerCallback(&SdTiledRenderingTest::callback, this);
@@ -451,7 +450,6 @@ void SdTiledRenderingTest::testSearchAllSelections()
CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(2), m_nPart);
// This was 1: only the first match was highlighted.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), m_aSelection.size());
-#endif
}
#endif
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 69ec22274a1f..caf2da7d6cdf 100644
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -591,6 +591,8 @@ void Outliner::Initialize (bool bDirectionIsForward)
bool Outliner::SearchAndReplaceAll()
{
+ DetectChange();
+
bool bRet = true;
// Save the current position to be restored after having replaced all
// matches.