diff options
author | Alfonso Eusebio <alfonso_eusebio@yahoo.co.uk> | 2011-01-25 15:04:20 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-01-25 15:04:20 +0000 |
commit | b83d973a49ada877c21ad76e410af82fdade5cc1 (patch) | |
tree | 005c02f31ff48f6ad70abc4460a2aee502ad5d96 /chart2/source/view/diagram/VDiagram.cxx | |
parent | 8cef84d41d28ceb698cf4d35ba2a8f3a43384b37 (diff) |
emoved lines of code that were commented out.
Diffstat (limited to 'chart2/source/view/diagram/VDiagram.cxx')
-rw-r--r-- | chart2/source/view/diagram/VDiagram.cxx | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/chart2/source/view/diagram/VDiagram.cxx b/chart2/source/view/diagram/VDiagram.cxx index 774e3c8809cb..fc2b41108ef1 100644 --- a/chart2/source/view/diagram/VDiagram.cxx +++ b/chart2/source/view/diagram/VDiagram.cxx @@ -198,8 +198,7 @@ void VDiagram::createShapes_2d() m_xWall2D = uno::Reference< drawing::XShape >( m_xShapeFactory->createInstance( C2U( "com.sun.star.drawing.RectangleShape" ) ), uno::UNO_QUERY ); - //m_xWall2D->setPosition(m_aAvailablePosIncludingAxes); - //m_xWall2D->setSize(m_aAvailableSizeIncludingAxes); + xGroupForWall->add(m_xWall2D); uno::Reference< beans::XPropertySet > xProp( m_xWall2D, uno::UNO_QUERY ); if( xProp.is()) @@ -354,9 +353,7 @@ void VDiagram::adjustAspectRatio3d( const awt::Size& rAvailableSize ) double fW = rAvailableSize.Width; double fH = rAvailableSize.Height; -// double cx = fabs(cos(m_fXAnglePi)); double sx = fabs(sin(m_fXAnglePi)); -// double cy = fabs(cos(m_fYAnglePi)); double sy = fabs(sin(m_fYAnglePi)); double cz = fabs(cos(m_fZAnglePi)); double sz = fabs(sin(m_fZAnglePi)); @@ -420,20 +417,6 @@ void VDiagram::adjustAspectRatio3d( const awt::Size& rAvailableSize ) else fScaleY = 1.0;//looking from top or bottom the height is irrelevant - /* - //fW*zoomfactor == fScaleX*cy*cz + fScaleY*sz*cy + fScaleZ*sy*cx; - //fH*zoomfactor == fScaleY*cx*cz + fScaleX*sz*cy + fScaleZ*sx*cz; - //==> fScaleY*(sz*cy*fH -cx*cz*fW) = fScaleX*(sz*cy*fW - cy*cz*fH) + fScaleZ*(sx*cz*fW - sy*cx*fH); - double fDivide = sz*cy*fH -cx*cz*fW; - if( !::basegfx::fTools::equalZero(fDivide) ) - { - fScaleY = ( fScaleX*(sz*cy*fW - cy*cz*fH) - + fScaleZ*(sx*cz*fW - sy*cx*fH) ) / fDivide; - lcl_ensureScaleValue(fScaleY); - } - else - fScaleY = 1.0;//looking from top or bottom hieght is irrelevant - */ } else if( fScaleY>0 && fScaleZ>0 ) { |