[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed May 15 13:54:22 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 195d9ce95c19ae07f9e6dda60cd30d41d3d73237
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed May 15 12:36:18 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed May 15 15:52:25 2019 +0200

    give invalid region in target device logic units
    
    Change-Id: I894e82cc97f63911c9cbb69e90d0212d6868527f
    Reviewed-on: https://gerrit.libreoffice.org/72359
    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 ce9b3ebb4392..a4d89c8bc0f8 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -8304,7 +8304,8 @@ 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(m_xDevice->PixelToLogic(aRect));
+        aRect = m_xDevice->PixelToLogic(aRect);
+        m_xDevice->Erase(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