diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-04 09:58:43 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-04 09:58:43 +0000 |
commit | 95f6b6a12c3f00e976bf00f9e26811f870dbbd3e (patch) | |
tree | 4335c71f622a6ce3c8a806d64b22e1f3eeac584e /chart2/source/controller/main/PositionAndSizeHelper.cxx | |
parent | INTEGRATION: CWS chart23 (1.27.6); FILE MERGED (diff) | |
download | core-95f6b6a12c3f00e976bf00f9e26811f870dbbd3e.tar.gz core-95f6b6a12c3f00e976bf00f9e26811f870dbbd3e.zip |
INTEGRATION: CWS chart23 (1.6.44); FILE MERGED
2008/02/22 11:51:54 iha 1.6.44.1: #i79262# Rotated Titles get an offset
Diffstat (limited to 'chart2/source/controller/main/PositionAndSizeHelper.cxx')
-rw-r--r-- | chart2/source/controller/main/PositionAndSizeHelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/main/PositionAndSizeHelper.cxx b/chart2/source/controller/main/PositionAndSizeHelper.cxx index a72eea656a85..68655afa2518 100644 --- a/chart2/source/controller/main/PositionAndSizeHelper.cxx +++ b/chart2/source/controller/main/PositionAndSizeHelper.cxx @@ -4,9 +4,9 @@ * * $RCSfile: PositionAndSizeHelper.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: ihi $ $Date: 2007-11-23 11:55:28 $ + * last change: $Author: kz $ $Date: 2008-04-04 10:58:43 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -84,11 +84,11 @@ bool PositionAndSizeHelper::moveObject( ObjectType eObjectType { //@todo decide wether x is primary or secondary chart2::RelativePosition aRelativePosition; - aRelativePosition.Anchor = drawing::Alignment_TOP; + aRelativePosition.Anchor = drawing::Alignment_CENTER; //the anchor point at the title object is top/middle Point aPos = aObjectRect.TopLeft(); aRelativePosition.Primary = (double(aPos.X())+double(aObjectRect.getWidth())/2.0)/double(aPageRect.getWidth()); - aRelativePosition.Secondary = double(aPos.Y())/double(aPageRect.getHeight()); + aRelativePosition.Secondary = (double(aPos.Y())+double(aObjectRect.getHeight())/2.0)/double(aPageRect.getHeight()); xObjectProp->setPropertyValue( C2U( "RelativePosition" ), uno::makeAny(aRelativePosition) ); } else if( OBJECTTYPE_DATA_CURVE_EQUATION==eObjectType ) |