[Libreoffice-commits] .: sc/source

Markus Mohrhard mmohrhard at kemper.freedesktop.org
Tue May 15 02:28:41 PDT 2012


 sc/source/filter/excel/xecontent.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 38987d02e5392c523203b91132d4c5790af24785
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue May 15 11:23:18 2012 +0200

    export color scales only to the correct sheet
    
    Change-Id: I70c4d213fdd91f7032d637e93410add1f8266a3e

diff --git a/sc/source/filter/excel/xecontent.cxx b/sc/source/filter/excel/xecontent.cxx
index a4315ba..968aab2 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 );
+            }
         }
     }
 }


More information about the Libreoffice-commits mailing list