File ooxml-labels-as-dates.patch of Package libreoffice.openSUSE_13.1_Update

From cc3f81394007f3ebc5cc2452a2fe0f7131881bcd Mon Sep 17 00:00:00 2001
From: Muthu Subramanian <sumuthu@collabora.com>
Date: Wed, 11 Sep 2013 16:11:43 +0000
Subject: n#834720: Labels wrongly interpreted as dates.

If the numFormat is available we should probably use that.
---
diff --git a/oox/source/drawingml/chart/axisconverter.cxx b/oox/source/drawingml/chart/axisconverter.cxx
index 1f725d6..886b252 100644
--- a/oox/source/drawingml/chart/axisconverter.cxx
+++ b/oox/source/drawingml/chart/axisconverter.cxx
@@ -310,10 +310,8 @@ void AxisConverter::convertFromModel( const Reference< XCoordinateSystem >& rxCo
         {
             bool bPercent = false;
             if( mrModel.maNumberFormat.maFormatCode.indexOf('%') >= 0)
-            {
-                mrModel.maNumberFormat.mbSourceLinked = false;
                 bPercent = true;
-            }
+            mrModel.maNumberFormat.mbSourceLinked = false;
             getFormatter().convertNumberFormat( aAxisProp, mrModel.maNumberFormat, bPercent );
         }
 
--
cgit v0.9.0.2-2-gbebe
openSUSE Build Service is sponsored by