Kaydet (Commit) 00bb94eb authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix auto MSO 2007 vs OOXML

Change-Id: I23dfa8612cc46a46b7cb8d9fa991058fdb506ef0
üst f0edb677
...@@ -171,11 +171,11 @@ CatAxisContext::~CatAxisContext() ...@@ -171,11 +171,11 @@ CatAxisContext::~CatAxisContext()
ContextHandlerRef CatAxisContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) ContextHandlerRef CatAxisContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
{ {
bool bMSO2007Doc = getFilter().isMSO2007Document();
if( isRootElement() ) switch( nElement ) if( isRootElement() ) switch( nElement )
{ {
case C_TOKEN( auto ): case C_TOKEN( auto ):
// default is 'false', not 'true' as specified mrModel.mbAuto = rAttribs.getBool( XML_val, !bMSO2007Doc );
mrModel.mbAuto = rAttribs.getBool( XML_val, false );
return 0; return 0;
case C_TOKEN( axPos ): case C_TOKEN( axPos ):
mrModel.mnAxisPos = rAttribs.getToken( XML_val, XML_TOKEN_INVALID ); mrModel.mnAxisPos = rAttribs.getToken( XML_val, XML_TOKEN_INVALID );
...@@ -211,11 +211,11 @@ DateAxisContext::~DateAxisContext() ...@@ -211,11 +211,11 @@ DateAxisContext::~DateAxisContext()
ContextHandlerRef DateAxisContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) ContextHandlerRef DateAxisContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
{ {
bool bMSO2007Doc = getFilter().isMSO2007Document();
if( isRootElement() ) switch( nElement ) if( isRootElement() ) switch( nElement )
{ {
case C_TOKEN( auto ): case C_TOKEN( auto ):
// default is 'false', not 'true' as specified mrModel.mbAuto = rAttribs.getBool( XML_val, !bMSO2007Doc );
mrModel.mbAuto = rAttribs.getBool( XML_val, false );
return 0; return 0;
case C_TOKEN( baseTimeUnit ): case C_TOKEN( baseTimeUnit ):
mrModel.monBaseTimeUnit = rAttribs.getToken( XML_val, XML_days ); mrModel.monBaseTimeUnit = rAttribs.getToken( XML_val, XML_days );
......
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