Kaydet (Commit) 28ca767e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

default text rotation for secondary axis is also from parent, tdf#75316

Change-Id: I0d17787e1b554854853910b1196582985864c944
üst 07e3155a
...@@ -135,7 +135,7 @@ ContextHandlerRef AxisContextBase::onCreateContext( sal_Int32 nElement, const At ...@@ -135,7 +135,7 @@ ContextHandlerRef AxisContextBase::onCreateContext( sal_Int32 nElement, const At
return 0; return 0;
case C_TOKEN( title ): case C_TOKEN( title ):
{ {
bool bVerticalDefault = mrModel.mnAxisPos == XML_l; bool bVerticalDefault = mrModel.mnAxisPos == XML_l || mrModel.mnAxisPos == XML_r;
sal_Int32 nDefaultRotation = bVerticalDefault ? -5400000 : 0; sal_Int32 nDefaultRotation = bVerticalDefault ? -5400000 : 0;
return new TitleContext( *this, mrModel.mxTitle.create(nDefaultRotation) ); return new TitleContext( *this, mrModel.mxTitle.create(nDefaultRotation) );
} }
......
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