diff options
author | Oliver Specht <os@openoffice.org> | 2001-07-06 06:07:09 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-07-06 06:07:09 +0000 |
commit | edf3ca701eacf8d280ed39922b9c585137f710c9 (patch) | |
tree | 839504949703aca8b665d8ad259068b53ab65a36 | |
parent | 05e7f3c1bfe37aa21a5e3e3d300e5bca160fdd44 (diff) |
86670# original size handler corrected
-rw-r--r-- | svx/source/dialog/grfpage.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/dialog/grfpage.cxx b/svx/source/dialog/grfpage.cxx index dca2f82dac3f..f15548d8026d 100644 --- a/svx/source/dialog/grfpage.cxx +++ b/svx/source/dialog/grfpage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: grfpage.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: dr $ $Date: 2001-06-15 12:17:19 $ + * last change: $Author: os $ $Date: 2001-07-06 07:07:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -637,12 +637,12 @@ IMPL_LINK( SvxGrfCropPage, OrigSizeHdl, PushButton *, EMPTYARG ) FieldUnit eUnit = MapToFieldUnit( pPool->GetMetric( pPool->GetWhich( SID_ATTR_GRAF_CROP ) ) ); - long nWidth = aOrigSize.Width() + - lcl_GetValue( aLeftMF, eUnit ) + + long nWidth = aOrigSize.Width() - + lcl_GetValue( aLeftMF, eUnit ) - lcl_GetValue( aRightMF, eUnit ); aWidthMF.SetValue( aWidthMF.Normalize( nWidth ), eUnit ); - long nHeight = aOrigSize.Height() + - lcl_GetValue( aTopMF, eUnit ) + + long nHeight = aOrigSize.Height() - + lcl_GetValue( aTopMF, eUnit ) - lcl_GetValue( aBottomMF, eUnit ); aHeightMF.SetValue( aHeightMF.Normalize( nHeight ), eUnit ); aWidthZoomMF.SetValue(100); |