summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-15 11:23:18 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-15 11:24:18 +0200
commit38987d02e5392c523203b91132d4c5790af24785 (patch)
tree437d6b791b6676cbd086457e64ed7c15fe28dc70 /sc
parentExplicitly initialize target-specific variables (diff)
downloadcore-38987d02e5392c523203b91132d4c5790af24785.tar.gz
core-38987d02e5392c523203b91132d4c5790af24785.zip
export color scales only to the correct sheet
Change-Id: I70c4d213fdd91f7032d637e93410add1f8266a3e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xecontent.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index a4315ba98c1b..968aab2f9601 100644
--- a/sc/source/filter/excel/xecontent.cxx
+++ b/sc/source/filter/excel/xecontent.cxx
@@ -1089,8 +1089,12 @@ XclExpCondFormatBuffer::XclExpCondFormatBuffer( const XclExpRoot& rRoot ) :
for( ScColorScaleFormatList::const_iterator itr = pColorScaleList->begin();
itr != pColorScaleList->end(); ++itr)
{
- XclExpColorScaleList::RecordRefType xColorScaleRec( new XclExpColorScale( GetRoot(), *itr ) );
- maColorScaleList.AppendRecord( xColorScaleRec );
+ const ScRangeList& rList = itr->GetRange();
+ if (rList.front()->aStart.Tab() == GetCurrScTab())
+ {
+ XclExpColorScaleList::RecordRefType xColorScaleRec( new XclExpColorScale( GetRoot(), *itr ) );
+ maColorScaleList.AppendRecord( xColorScaleRec );
+ }
}
}
}