diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2012-05-14 16:11:06 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-05-14 16:13:27 +0530 |
commit | e9512baf22219e5073207bcce5f9e62dc6a8badc (patch) | |
tree | 5ecdf141d96cf6c69a82878a4a5311d7a04319c1 | |
parent | bae852548bb6559ae16402400ff4c63c225008f7 (diff) |
n720443: Ignore autorotation of chart labels.
If there is a suggested rotation value for the axis,
it might be better to ignore the autorotation bool.
A better approach would be to improve our autorotation algo.
-rw-r--r-- | sc/source/filter/excel/xichart.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx index 5503c214e2d8..63318655a360 100644 --- a/sc/source/filter/excel/xichart.cxx +++ b/sc/source/filter/excel/xichart.cxx @@ -3194,6 +3194,11 @@ Color XclImpChTick::GetFontColor() const sal_uInt16 XclImpChTick::GetRotation() const { + /* n#720443: Ignore auto-rotation if there is a suggested rotation. + * Better fix would be to improve our axis auto rotation algorithm. + */ + if( maData.mnRotation != EXC_ROT_NONE ) + return maData.mnRotation; return ::get_flag( maData.mnFlags, EXC_CHTICK_AUTOROT ) ? EXC_CHART_AUTOROTATION : maData.mnRotation; } |