xmloff/source/chart/SchXMLTableContext.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit 84c8157b46e5b2feff48f8a9e8d5df2879c5a740 Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Thu Jun 5 15:17:00 2014 -0400 fdo#72727: Revert "-Werror=unused-but-set-variable second try" This reverts commit ccf7b15c0a5776c6431fdcb0c0e2b0f3935ae3dc. (cherry picked from commit 61d958f37ed2aad6be2eab7bb507e0fb77716eec) diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index 48936b3..a443522 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -855,6 +855,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( const OUString lcl_aCategoriesRange(aCategoriesRange); + bool bCategoriesApplied = false; // translate ranges (using the map created before) for( tSchXMLLSequencesPerIndex::const_iterator aLSeqIt( rLSequencesPerIndex.begin()); aLSeqIt != rLSequencesPerIndex.end(); ++aLSeqIt ) @@ -883,7 +884,12 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( } else { - if( !lcl_tableOfRangeMatches( aRange, rTable.aTableNameOfFile )) + if( lcl_tableOfRangeMatches( aRange, rTable.aTableNameOfFile )) + { + if( aLSeqIt->first.first == SCH_XML_CATEGORIES_INDEX ) + bCategoriesApplied = true; + } + else { if( aLSeqIt->first.first == SCH_XML_CATEGORIES_INDEX ) { @@ -894,6 +900,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( SchXMLTools::copyProperties( xOldSequenceProp, Reference< beans::XPropertySet >( xNewSequence, uno::UNO_QUERY )); aLSeqIt->second->setValues( xNewSequence ); + bCategoriesApplied = true; } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits