[Libreoffice-commits] .: sc/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Mon May 14 03:22:37 PDT 2012


 sc/source/filter/excel/xichart.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e9512baf22219e5073207bcce5f9e62dc6a8badc
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Mon May 14 16:11:06 2012 +0530

    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.

diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 5503c21..6331865 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;
 }
 


More information about the Libreoffice-commits mailing list