diff options
Diffstat (limited to 'test/source/screenshot_test.cxx')
-rw-r--r-- | test/source/screenshot_test.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index 9dce8bf09c45..8ab5d3b1f8eb 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -184,7 +184,12 @@ void ScreenshotTest::dumpDialogToPath(const OString& rUIXMLDescription) { VclPtr<vcl::Window> aOwnedToplevel; - std::unique_ptr<VclBuilder> xBuilder(new VclBuilder(pDialog, VclBuilderContainer::getUIRootDir(), OStringToOUString(rUIXMLDescription, RTL_TEXTENCODING_UTF8))); + bool bLegacy; + if (rUIXMLDescription == "cui/ui/textanimtabpage.ui") + bLegacy = false; + else + bLegacy = true; + std::unique_ptr<VclBuilder> xBuilder(new VclBuilder(pDialog, VclBuilderContainer::getUIRootDir(), OStringToOUString(rUIXMLDescription, RTL_TEXTENCODING_UTF8), OString(), css::uno::Reference<css::frame::XFrame>(), bLegacy)); vcl::Window *pRoot = xBuilder->get_widget_root(); Dialog *pRealDialog = dynamic_cast<Dialog*>(pRoot); |