[Libreoffice-commits] core.git: include/vcl svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 8 14:00:51 UTC 2020
include/vcl/customweld.hxx | 1 +
svx/source/dialog/weldeditview.cxx | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 8e6819e06e41e6ad29fbd337a2b641d13f3194ea
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Oct 8 13:27:34 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Oct 8 16:00:07 2020 +0200
CustomWeld::Paint rRect is in logical units, not pixels
Change-Id: I92935bce0ed280f55e061cfdf0a94078946b8c07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104087
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/customweld.hxx b/include/vcl/customweld.hxx
index d94837bbcce5..3f4b5d13ed97 100644
--- a/include/vcl/customweld.hxx
+++ b/include/vcl/customweld.hxx
@@ -28,6 +28,7 @@ public:
{
return css::uno::Reference<css::accessibility::XAccessible>();
}
+ // rRect is in Logical units rather than Pixels
virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) = 0;
virtual void Resize() {}
virtual bool MouseButtonDown(const MouseEvent&) { return false; }
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index 42b92f176975..d9d865b9cf2a 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -102,8 +102,7 @@ void WeldEditView::Paint(vcl::RenderContext& rRenderContext, const tools::Rectan
{
m_xEditView->SetBackgroundColor(aBgColor);
- tools::Rectangle aLogicRect(rRenderContext.PixelToLogic(rRect));
- m_xEditView->Paint(aLogicRect, &rRenderContext);
+ m_xEditView->Paint(rRect, &rRenderContext);
if (HasFocus())
{
More information about the Libreoffice-commits
mailing list