[Libreoffice-commits] core.git: chart2/source
Muthu Subramanian
sumuthu at suse.com
Thu Jun 27 06:12:52 PDT 2013
chart2/source/view/axes/VCartesianAxis.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit bcb434b47f45f9ffbc32f8bde79226b161c21ffa
Author: Muthu Subramanian <sumuthu at suse.com>
Date: Thu Jun 27 18:46:47 2013 +0530
n#820273: Multilevel labels are rotated.
It looks odd when multilevel labels are rotated as well.
This patch resets the rotation values for outer labels.
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index 5e193ac..6d0e7b6 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -1529,6 +1529,14 @@ void VCartesianAxis::updatePositions()
,static_cast<sal_Int32>(aTickScreenPos2D.getY()));
double fRotationAngleDegree = m_aAxisLabelProperties.fRotationAngleDegree;
+ if( nDepth > 0 )
+ {
+ /* Multi-level Labels: default to 0 or 90 */
+ if( pTickFactory2D->isHorizontalAxis() )
+ fRotationAngleDegree = 0.0;
+ else
+ fRotationAngleDegree = 90;
+ }
// #i78696# use mathematically correct rotation now
const double fRotationAnglePi(fRotationAngleDegree * (F_PI / -180.0));
More information about the Libreoffice-commits
mailing list