diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-08 15:05:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-08 17:25:23 +0200 |
commit | c7864c54302b8d44f96359df2eca735a6e80ebb7 (patch) | |
tree | 4647800914ff9f1c1c4dfe48fa03b1b016fb5d21 /test | |
parent | ffbe5d9ec3983a9e12f7b1528717d6f3bed071ca (diff) |
fix make screenshot
Change-Id: I781dfbc7bb09afd0c2325bcc9fd98e31ec5c4f39
Reviewed-on: https://gerrit.libreoffice.org/53983
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'test')
-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); |