diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-10-11 08:03:07 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-10-11 08:03:07 +0000 |
commit | 23a3133597b585d5fbcba130f3258dda13f32789 (patch) | |
tree | 92e7bd6ba777345a4d3c65d21c75b5baf001df68 /cppcanvas | |
parent | 1081df0884149ea73f90268c3a8ce5b720b821be (diff) |
INTEGRATION: CWS presfixes08 (1.10.6); FILE MERGED
2005/07/11 16:46:38 dbo 1.10.6.1: #i37786# corrected pref map mode origin calculations
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 133d2fbf2678..5eb590545778 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -4,9 +4,9 @@ * * $RCSfile: implrenderer.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: hr $ $Date: 2005-09-23 14:30:27 $ + * last change: $Author: obo $ $Date: 2005-10-11 09:03:07 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2801,9 +2801,8 @@ namespace cppcanvas clearStateStack( aStateStack ); // Setup local state, such that the metafile renders - // itself into a one-by-one square for identity view - // and render transformations - getState( aStateStack ).transform.translate( -aMtfOriginPix.X(), -aMtfOriginPix.Y() ); + // itself into a one-by-one square at the origin for + // identity view and render transformations getState( aStateStack ).transform.scale( 1.0 / aMtfSizePix.Width(), 1.0 / aMtfSizePix.Height() ); |