sd/source/filter/grf/sdgrffilter.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 48b3ed91b34d2a6667cf2c0a2dab9afeeacb9e05
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Wed Jun 14 01:20:05 2023 +0900
Commit:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
CommitDate: Wed Jun 14 01:20:05 2023 +0900

    fix: issue with pGraphic
    
    Change-Id: I1b6a92ed8e1d29b5f6bb48a596138060809b37c8

diff --git a/sd/source/filter/grf/sdgrffilter.cxx 
b/sd/source/filter/grf/sdgrffilter.cxx
index cd621d4bddc6..dff4c8026eba 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -187,7 +187,7 @@ void SdGRFFilter::InsertSdrGrafObj(Graphic aGraphic, 
SdPage* pPage)
 {
     Point aPos;
     Size aPagSize(pPage->getSize().toToolsSize());
-    Size aGrfSize(OutputDevice::LogicToLogic(aGraphic.GetPrefSize(), 
pGraphic.GetPrefMapMode(),
+    Size aGrfSize(OutputDevice::LogicToLogic(aGraphic.GetPrefSize(), 
aGraphic.GetPrefMapMode(),
                                              MapMode(MapUnit::Map100thMM)));
 
     aPagSize.AdjustWidth(-basegfx::fround((pPage->getBorder().getLeft() + 
pPage->getBorder().getRight()).as(pPage->getUnit())));
@@ -217,7 +217,7 @@ void SdGRFFilter::InsertSdrGrafObj(Graphic aGraphic, 
SdPage* pPage)
     aPos.setX(((aPagSize.Width() - aGrfSize.Width()) / 2.0) + 
pPage->getBorder().leftUnit());
     aPos.setY(((aPagSize.Height() - aGrfSize.Height()) / 2.0) + 
pPage->getBorder().upperUnit());
 
-    pPage->InsertObject(new SdrGrafObj(pPage->getSdrModelFromSdrPage(), 
+    pPage->InsertObject(new SdrGrafObj(pPage->getSdrModelFromSdrPage(),
                         aGraphic, ::tools::Rectangle(aPos, aGrfSize)));
 }
 

Reply via email to