summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorAdrien Ollier <adr.ollier@hotmail.fr>2019-05-14 18:47:07 +0200
committerTomaž Vajngerl <quikee@gmail.com>2019-06-23 12:23:50 +0200
commit869d1c404c7bcab6bce59a9abea45ca583f77468 (patch)
treec8259860ee079480cd0d0c4cad531e2695b5fefc /editeng
parent6d4039c130896c57363bb60982c0b5601c4f0c3e (diff)
editeng/XParaPortionList: OutputDevice's MapMode
Change-Id: I77098fd15e131711e4f2a7ef4f21bd1dd8d68768 Signed-off-by: Adrien Ollier <adr.ollier@hotmail.fr> Reviewed-on: https://gerrit.libreoffice.org/72307 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editobj.cxx1
-rw-r--r--editeng/source/editeng/editobj2.hxx3
2 files changed, 1 insertions, 3 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 496bde7284d5..ad096dfa7f82 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -92,7 +92,6 @@ void XEditAttribute::SetItem(const SfxPoolItem& rNew)
XParaPortionList::XParaPortionList(
OutputDevice* pRefDev, sal_uLong nPW, sal_uInt16 _nStretchX, sal_uInt16 _nStretchY)
: pRefDevPtr(pRefDev)
- , aRefMapMode(pRefDev->GetMapMode())
, nStretchX(_nStretchX)
, nStretchY(_nStretchY)
, nPaperWidth(nPW)
diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx
index c833e4b57d99..f3436930c484 100644
--- a/editeng/source/editeng/editobj2.hxx
+++ b/editeng/source/editeng/editobj2.hxx
@@ -97,7 +97,6 @@ class XParaPortionList
ListType maList;
VclPtr<OutputDevice> pRefDevPtr;
- MapMode aRefMapMode;
sal_uInt16 nStretchX;
sal_uInt16 nStretchY;
sal_uLong nPaperWidth;
@@ -111,7 +110,7 @@ public:
OutputDevice* GetRefDevPtr() const { return pRefDevPtr; }
sal_uLong GetPaperWidth() const { return nPaperWidth; }
bool RefDevIsVirtual() const {return pRefDevPtr->IsVirtual();}
- const MapMode& GetRefMapMode() const { return aRefMapMode; }
+ const MapMode& GetRefMapMode() const { return pRefDevPtr->GetMapMode(); }
sal_uInt16 GetStretchX() const { return nStretchX; }
sal_uInt16 GetStretchY() const { return nStretchY; }
};