sc/qa/unit/subsequent_filters_test3.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 0e536abc286b50de171ecb0b6a57dad37467a516 Author: Andreas Heinisch <andreas.heini...@yahoo.de> AuthorDate: Wed Mar 29 18:18:14 2023 +0200 Commit: Andreas Heinisch <andreas.heini...@yahoo.de> CommitDate: Thu Mar 30 07:29:04 2023 +0000 tdf#108188 - Use constant string for default page style Change-Id: I7c398c3dec044722e4552527de8553506cda54f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149730 Tested-by: Andreas Heinisch <andreas.heini...@yahoo.de> Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de> diff --git a/sc/qa/unit/subsequent_filters_test3.cxx b/sc/qa/unit/subsequent_filters_test3.cxx index 7b2407c304b0..400a2fbcdd2c 100644 --- a/sc/qa/unit/subsequent_filters_test3.cxx +++ b/sc/qa/unit/subsequent_filters_test3.cxx @@ -34,6 +34,8 @@ #include <detfunc.hxx> #include <scerrors.hxx> #include <tabvwsh.hxx> +#include <scresid.hxx> +#include <globstr.hrc> #include <com/sun/star/drawing/FillStyle.hpp> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> @@ -1732,7 +1734,8 @@ CPPUNIT_TEST_FIXTURE(ScFiltersTest3, testTdf108188_pagestyle) // Without the accompanying fix in place, the page styles are always used ScStyleSheetPool* pStylePool = pDoc->GetStyleSheetPool(); CPPUNIT_ASSERT(pStylePool->Find(aTestPageStyle, SfxStyleFamily::Page)->IsUsed()); - CPPUNIT_ASSERT(!pStylePool->Find("Default", SfxStyleFamily::Page)->IsUsed()); + CPPUNIT_ASSERT( + !pStylePool->Find(ScResId(STR_STYLENAME_STANDARD), SfxStyleFamily::Page)->IsUsed()); } CPPUNIT_PLUGIN_IMPLEMENT();