diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-19 11:35:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-19 16:47:26 +0200 |
commit | b8a34192ddf561561116358fcf198388e4b601c2 (patch) | |
tree | 9b3d1820f2b0242a913d86443d11a1b0c148fecc /vcl/unx | |
parent | de9f70675a3c9e02f02c71fd238735b9015634ff (diff) |
don't assert on dumping screenshot under X
e.g. on sceenshot to dbaccess/ui/savemodifieddialog/de/SaveModifiedDialog.png
looking at the output its better to include the csd offset under X too
Change-Id: If9e1f8d6350a7931461804c459d0d4a88a01b523
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100983
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index a1f57e0e14dd..e743a6b8556e 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -4130,12 +4130,6 @@ public: Point aOffset = get_csd_offset(GTK_WIDGET(m_pWindow)); -#if defined(GDK_WINDOWING_X11) - GdkDisplay *pDisplay = gtk_widget_get_display(GTK_WIDGET(m_pWindow)); - if (DLSYM_GDK_IS_X11_DISPLAY(pDisplay)) - assert(aOffset.X() == 0 && aOffset.Y() == 0 && "expected offset of 0 under X"); -#endif - cairo_translate(cr, -aOffset.X(), -aOffset.Y()); gtk_widget_draw(GTK_WIDGET(m_pWindow), cr); |