Kaydet (Commit) bcb434b4 authored tarafından Muthu Subramanian's avatar Muthu Subramanian

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.
üst d63bd691
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment