diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-06-27 18:46:47 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2013-06-27 18:48:43 +0530 |
commit | bcb434b47f45f9ffbc32f8bde79226b161c21ffa (patch) | |
tree | 08f30657779d1a945aa6870e880c9c9742eae18e /chart2 | |
parent | d63bd6914f479ea4cd718b6f0a26b1edfc141562 (diff) |
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.
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/axes/VCartesianAxis.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index 5e193ac18f94..6d0e7b6ba68d 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)); |