[Libreoffice-commits] core.git: editeng/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 25 09:33:10 UTC 2021
editeng/source/editeng/impedit.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e73b2a8ff50829cbecb29b03aa513de5248aa8cc
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Aug 23 21:12:46 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 25 11:32:36 2021 +0200
lcl_translateTwips only needs OutputDevices
Change-Id: I2c1536f062557f598aee0b0552044a7f41302b07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120948
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index d1b00e478560..27d3f979655e 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -279,7 +279,7 @@ void ImpEditView::SetEditSelection( const EditSelection& rEditSelection )
}
/// Translate absolute <-> relative twips: LOK wants absolute coordinates as output and gives absolute coordinates as input.
-static void lcl_translateTwips(vcl::Window const & rParent, vcl::Window& rChild)
+static void lcl_translateTwips(const OutputDevice& rParent, OutputDevice& rChild)
{
// Don't translate if we already have a non-zero origin.
// This prevents multiple translate calls that negate
@@ -367,7 +367,7 @@ void ImpEditView::lokSelectionCallback(const std::optional<tools::PolyPolygon> &
if (parent)
{
- lcl_translateTwips(*parent, *pOutWin);
+ lcl_translateTwips(*parent->GetOutDev(), *pOutWin->GetOutDev());
}
}
More information about the Libreoffice-commits
mailing list