[Libreoffice-commits] core.git: sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Fri Aug 2 16:55:59 PDT 2013


 sc/source/filter/xml/xmlcelli.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 7b319cb9c11bb0f0100c16b6268e580a1d6e64aa
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Fri Aug 2 18:39:01 2013 -0400

    fdo#67684: Store imported text style entries, else they won't get exported.
    
    Change-Id: Id784772e677e176622e75ff5ae33ab3eb78b1d9a

diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 1fa56a0..de12fd2 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -404,6 +404,11 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons
     rFmt.maSelection.nStartPos = nBegin;
     rFmt.maSelection.nEndPos = nEnd;
 
+    // Store the used text styles for export.
+    ScSheetSaveData* pSheetData = ScModelObj::getImplementation(rXMLImport.GetModel())->GetSheetSaveData();
+    ScAddress aCellPos = rXMLImport.GetTables().GetCurrentCellPos();
+    pSheetData->AddTextStyle(rStyleName, aCellPos, rFmt.maSelection);
+
     boost::scoped_ptr<SfxPoolItem> pPoolItem;
     sal_uInt16 nLastItemID = EE_CHAR_END + 1;
 


More information about the Libreoffice-commits mailing list