summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorDieter Loeschky <dl@openoffice.org>2001-03-12 13:53:05 +0000
committerDieter Loeschky <dl@openoffice.org>2001-03-12 13:53:05 +0000
commitc1d992e3d5d1a7f737bae576073adf5a513e8073 (patch)
tree8168e6e66ebf363e0e9ae70590e3a1f25c1b2584 /svx
parenta3762ec569b5cf898ed98c6335b76ad3f90f0861 (diff)
Paint(): painting of pGraphic modified
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index ba3209456294..1e5d1317d96a 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svdoole2.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jp $ $Date: 2001-03-08 21:15:38 $
+ * last change: $Author: dl $ $Date: 2001-03-12 14:53:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -589,8 +589,7 @@ FASTBOOL SdrOle2Obj::Paint(ExtOutputDevice& rOut, const SdrPaintInfoRec& rInfoRe
OutputDevice* pOutDev=rOut.GetOutDev();
if( IsEmptyPresObj() )
{
- Size aSizePix(pOutDev->LogicToPixel(pGraphic->GetPrefSize(),pGraphic->GetPrefMapMode()));
- Size aSize(pOutDev->PixelToLogic(aSizePix));
+ Size aSize( pOutDev->PixelToLogic( pGraphic->GetPrefSize() ) );
Point aPos(aRect.Center());
aPos.X()-=aSize.Width() /2;
aPos.Y()-=aSize.Height()/2;