[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 4 08:29:26 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 592a729790c737389673cd3c743df12a9e3cbd4c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Apr 3 13:58:49 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 4 10:28:56 2019 +0200
aRect is always in pixels
Change-Id: Ib122a2f970a7852e2979a5301f635f9f1a4ce87b
Reviewed-on: https://gerrit.libreoffice.org/70214
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index d02fbad31146..4041202ed6cd 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -7500,7 +7500,7 @@ private:
if (!gdk_cairo_get_clip_rectangle(cr, &rect))
return;
tools::Rectangle aRect(Point(rect.x, rect.y), Size(rect.width, rect.height));
- m_xDevice->Erase(aRect);
+ m_xDevice->Erase(m_xDevice->PixelToLogic(aRect));
m_aDrawHdl.Call(std::pair<vcl::RenderContext&, const tools::Rectangle&>(*m_xDevice, aRect));
cairo_surface_mark_dirty(m_pSurface);
More information about the Libreoffice-commits
mailing list