[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 7 02:04:49 PST 2012


 sc/source/filter/excel/xestyle.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit a68d26c0b626ce78bc2f5ed4da3c0dba462bed31
Author: Noel Power <noel.power at suse.com>
Date:   Fri Sep 28 19:02:44 2012 +0100

    halt corrupted styles with multi-saved xlsx document fdo#55418
    
    Change-Id: I2d53c88ab121edeec2bf53f7fd177a0edcc05a25
    Reviewed-on: https://gerrit.libreoffice.org/958
    Reviewed-by: Kohei Yoshida <kohei.yoshida at gmail.com>
    Tested-by: Kohei Yoshida <kohei.yoshida at gmail.com>

diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 13b7d40..6740fde 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -2229,7 +2229,10 @@ void XclExpStyle::SaveXml( XclExpXmlStream& rStrm )
     }
     else
         sName = XclXmlUtils::ToOString( maName );
-    sal_Int32 nXFId = rStrm.GetRoot().GetXFBuffer().GetXmlStyleIndex( maXFId.mnXFId );
+    // get the index in sortedlist associated with the mnXId
+    sal_Int32 nXFId = rStrm.GetRoot().GetXFBuffer().GetXFIndex( maXFId.mnXFId );
+    // get the style index associated with index into sortedlist
+    nXFId = rStrm.GetRoot().GetXFBuffer().GetXmlStyleIndex( nXFId );
     rStrm.GetCurrentStream()->singleElement( XML_cellStyle,
             XML_name,           sName.getStr(),
             XML_xfId,           OString::valueOf( nXFId ).getStr(),


More information about the Libreoffice-commits mailing list