Kaydet (Commit) 592a7297 authored tarafından Caolán McNamara's avatar Caolán McNamara

aRect is always in pixels

Change-Id: Ib122a2f970a7852e2979a5301f635f9f1a4ce87b
Reviewed-on: https://gerrit.libreoffice.org/70214
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 397271c7
...@@ -7500,7 +7500,7 @@ private: ...@@ -7500,7 +7500,7 @@ private:
if (!gdk_cairo_get_clip_rectangle(cr, &rect)) if (!gdk_cairo_get_clip_rectangle(cr, &rect))
return; return;
tools::Rectangle aRect(Point(rect.x, rect.y), Size(rect.width, rect.height)); 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)); m_aDrawHdl.Call(std::pair<vcl::RenderContext&, const tools::Rectangle&>(*m_xDevice, aRect));
cairo_surface_mark_dirty(m_pSurface); cairo_surface_mark_dirty(m_pSurface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment