diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-06-10 12:55:28 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-06-10 12:55:28 +0000 |
commit | 88e51d1e64d1b99f576fc85cbcee1f46bd0d1b6b (patch) | |
tree | ece2a47d655a78a2bfa3b7d9ae69a80d70943f59 /goodies | |
parent | 5fefc54fc2e8b2c3a9c9926850b3e59bfb6dc55f (diff) |
INTEGRATION: CWS draw16 (1.20.18); FILE MERGED
2003/06/05 13:00:44 sj 1.20.18.1: #i13131# fixed scaling problem
Diffstat (limited to 'goodies')
-rw-r--r-- | goodies/source/filter.vcl/eps/eps.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/goodies/source/filter.vcl/eps/eps.cxx b/goodies/source/filter.vcl/eps/eps.cxx index 8ea33c4ff6b3..252640108cdf 100644 --- a/goodies/source/filter.vcl/eps/eps.cxx +++ b/goodies/source/filter.vcl/eps/eps.cxx @@ -2,9 +2,9 @@ * * $RCSfile: eps.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: vg $ $Date: 2003-06-06 10:30:35 $ + * last change: $Author: vg $ $Date: 2003-06-10 13:55:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2319,9 +2319,11 @@ double PSWriter::ImplGetScaling( const MapMode& rMapMode ) void PSWriter::ImplGetMapMode( const MapMode& rMapMode ) { ImplWriteLine( "tm setmatrix" ); - double nMul = ImplGetScaling( rMapMode ); - ImplTranslate( rMapMode.GetOrigin().X() * nMul, rMapMode.GetOrigin().Y() * nMul ); - ImplScale( nMul * (double)rMapMode.GetScaleX(), nMul * (double)rMapMode.GetScaleY() ); + double fMul = ImplGetScaling( rMapMode ); + double fScaleX = (double)rMapMode.GetScaleX() * fMul; + double fScaleY = (double)rMapMode.GetScaleY() * fMul; + ImplTranslate( rMapMode.GetOrigin().X() * fScaleX, rMapMode.GetOrigin().Y() * fScaleY ); + ImplScale( fScaleX, fScaleY ); } //--------------------------------------------------------------------------------- |