From 19fd82ac6e08896bd17169d1b6ea090458fc18da Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 7 Jul 2020 20:27:51 +0100 Subject: distinguish between dialog screenshoting and rendering a widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I43ee0c68d72c97a15d26e2ffea577c2a44ba91e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98326 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- test/source/screenshot_test.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index 8e6a8775db05..ea26f80c47a6 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -112,8 +112,7 @@ void ScreenshotTest::saveScreenshot(VclAbstractDialog const & rDialog) void ScreenshotTest::saveScreenshot(weld::Window& rDialog) { - VclPtr xDialogSurface(VclPtr::Create(DeviceFormat::DEFAULT)); - rDialog.draw(*xDialogSurface); + VclPtr xDialogSurface(rDialog.screenshot()); const BitmapEx aScreenshot(xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel())); if (!aScreenshot.IsEmpty()) -- cgit