summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorsushil_shinde <sushil.shinde@synerzip.com>2013-12-09 12:27:40 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-19 03:20:40 +0100
commita70dfc34a67e9fb240cc70853da0c49fa01c2e4f (patch)
tree97964cf2cc86a868a538db4fa71a112e010a6dec /xmloff
parent02a047365fccce91d5b1feae0addf79fe58ebe31 (diff)
fdo#72306 Axis names were lost after saving file on LO.
While exporting chart "crosses" position values were not handled properly in chartexport. Fixed this issue by handling "autozero" value for c:crosses. Added unit test. Change-Id: I3489908d4c3d4b41a04debfecf95e65f373649ce
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/XMLAxisPositionPropertyHdl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmloff/source/chart/XMLAxisPositionPropertyHdl.cxx b/xmloff/source/chart/XMLAxisPositionPropertyHdl.cxx
index 1243011bfd8f..de047a7444de 100644
--- a/xmloff/source/chart/XMLAxisPositionPropertyHdl.cxx
+++ b/xmloff/source/chart/XMLAxisPositionPropertyHdl.cxx
@@ -62,6 +62,14 @@ bool XMLAxisPositionPropertyHdl::importXML( const OUString& rStrImpValue,
bResult = true;
}
}
+ else if( rStrImpValue.equals( GetXMLToken(XML_0) ) )
+ {
+ if( !m_bCrossingValue )
+ {
+ rValue <<= ::com::sun::star::chart::ChartAxisPosition_ZERO;
+ bResult = true;
+ }
+ }
else
{
if( !m_bCrossingValue )