diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-03-23 10:49:31 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-03-23 10:49:31 +0000 |
commit | 98fd3db7b228cca0e7b18a405860909334a05c0b (patch) | |
tree | 12fce19f45346eeede7e1138cf10b09b92681d7f | |
parent | e930c1d75657b038de4870070a23afe587beda6a (diff) |
#85155#: special treatment if graphic rotation==180 degrees
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 694a81bbf831..d42f2f5e1b15 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdograf.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: cl $ $Date: 2001-03-19 09:49:17 $ + * last change: $Author: ka $ $Date: 2001-03-23 11:49:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -878,6 +878,12 @@ FASTBOOL SdrGrafObj::Paint( ExtOutputDevice& rOut, const SdrPaintInfoRec& rInfoR aAttr.SetMirrorFlags( ( bHMirr ? BMP_MIRROR_HORZ : 0 ) | ( bVMirr ? BMP_MIRROR_VERT : 0 ) ); + if( bRota180 ) + { + aLogPos.X() -= ( aLogSize.Width() - 1L ); + aLogPos.Y() -= ( aLogSize.Height() - 1L ); + } + if( pGraphic->GetType() == GRAPHIC_BITMAP ) { if( pGraphic->IsAnimated() ) @@ -915,12 +921,6 @@ FASTBOOL SdrGrafObj::Paint( ExtOutputDevice& rOut, const SdrPaintInfoRec& rInfoR // MetaFiles const ULONG nOldDrawMode = pOutDev->GetDrawMode(); - if( bRota180 ) - { - aLogPos.X() -= ( aLogSize.Width() - 1L ); - aLogPos.Y() -= ( aLogSize.Height() - 1L ); - } - // Falls Modus GRAYBITMAP, wollen wir auch Mtf's als Graustufen darstellen if( nOldDrawMode & DRAWMODE_GRAYBITMAP ) { |