diff options
author | Armin Weiss <aw@openoffice.org> | 2001-01-17 11:23:45 +0000 |
---|---|---|
committer | Armin Weiss <aw@openoffice.org> | 2001-01-17 11:23:45 +0000 |
commit | cb9db6019b780794f3d8dac860711e9fa8d0c983 (patch) | |
tree | b65d6245d2d6d5197193fa5a573734f5c2f2e0bb /svx/source/dialog/transfrm.cxx | |
parent | 30b9eaa4bd52db13410fc26fc7921605bd7fe3ea (diff) |
#75897# shear point was never done correct, added correct one
Diffstat (limited to 'svx/source/dialog/transfrm.cxx')
-rw-r--r-- | svx/source/dialog/transfrm.cxx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/svx/source/dialog/transfrm.cxx b/svx/source/dialog/transfrm.cxx index fde0e6fbd213..190f172f00b4 100644 --- a/svx/source/dialog/transfrm.cxx +++ b/svx/source/dialog/transfrm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: transfrm.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2000-10-24 12:59:51 $ + * last change: $Author: aw $ $Date: 2001-01-17 12:23:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1902,9 +1902,18 @@ BOOL SvxSlantTabPage::FillItemSet( SfxItemSet& rAttrs ) if( bModified ) { // Referenzpunkt setzen - Point aPt = aRect.Center(); - rAttrs.Put( SfxInt32Item( SID_ATTR_TRANSFORM_SHEAR_X, aPt.X() ) ); - rAttrs.Put( SfxInt32Item( SID_ATTR_TRANSFORM_SHEAR_Y, aPt.Y() ) ); + // #75897# + Rectangle aObjectRect(pView->GetAllMarkedRect()); + pView->GetPageViewPvNum(0)->LogicToPagePos(aObjectRect); + Point aPt = aObjectRect.Center(); + + rAttrs.Put(SfxInt32Item(SID_ATTR_TRANSFORM_SHEAR_X, aPt.X())); + rAttrs.Put(SfxInt32Item(SID_ATTR_TRANSFORM_SHEAR_Y, aPt.Y())); + + // Referenzpunkt setzen +// Point aPt = aRect.Center(); +// rAttrs.Put( SfxInt32Item( SID_ATTR_TRANSFORM_SHEAR_X, aPt.X() ) ); +// rAttrs.Put( SfxInt32Item( SID_ATTR_TRANSFORM_SHEAR_Y, aPt.Y() ) ); rAttrs.Put( SfxBoolItem( SID_ATTR_TRANSFORM_SHEAR_VERTICAL, FALSE ) ); } |