diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-23 21:12:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-25 11:32:36 +0200 |
commit | e73b2a8ff50829cbecb29b03aa513de5248aa8cc (patch) | |
tree | 12a6c6f177f37720a148727eacf903dbb44af889 /editeng | |
parent | 4ff568e9ec56ef3cefd9265459fa9fe979d3cdcc (diff) |
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@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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()); } } |