*** orig/chart2/source/controller/main/PositionAndSizeHelper.cxx Fri Nov 23 19:55:28 2007 --- new/chart2/source/controller/main/PositionAndSizeHelper.cxx Sat Feb 2 10:26:06 2008 *************** *** 84,94 **** { //@todo decide wether x is primary or secondary chart2::RelativePosition aRelativePosition; ! aRelativePosition.Anchor = drawing::Alignment_TOP; //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()); xObjectProp->setPropertyValue( C2U( "RelativePosition" ), uno::makeAny(aRelativePosition) ); } else if( OBJECTTYPE_DATA_CURVE_EQUATION==eObjectType ) --- 84,94 ---- { //@todo decide wether x is primary or secondary chart2::RelativePosition aRelativePosition; ! 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(aObjectRect.getHeight())/2.0)/double(aPageRect.getHeight()); xObjectProp->setPropertyValue( C2U( "RelativePosition" ), uno::makeAny(aRelativePosition) ); } else if( OBJECTTYPE_DATA_CURVE_EQUATION==eObjectType )