summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-07 20:27:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-08 13:39:11 +0200
commit19fd82ac6e08896bd17169d1b6ea090458fc18da (patch)
treea179a2651dc58d4574833ac39ab0ea70f1dd8110 /sfx2/source/dialog
parent2d8e2813ddc87f7ce03b97e4d603df11613461f0 (diff)
distinguish between dialog screenshoting and rendering a widget
Change-Id: I43ee0c68d72c97a15d26e2ffea577c2a44ba91e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98326 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 7ced6461675b..22acd6791b25 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1153,8 +1153,7 @@ BitmapEx SfxTabDialogController::createScreenshot() const
const_cast<SfxTabDialogController*>(this)->Start_Impl();
}
- VclPtr<VirtualDevice> xDialogSurface(VclPtr<VirtualDevice>::Create(DeviceFormat::DEFAULT));
- m_xDialog->draw(*xDialogSurface);
+ VclPtr<VirtualDevice> xDialogSurface(m_xDialog->screenshot());
return xDialogSurface->GetBitmapEx(Point(), xDialogSurface->GetOutputSizePixel());
}