[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Mon Aug 5 08:52:15 PDT 2013
sc/source/filter/xml/xmlcelli.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 09a8fb1d90964d51d93a7e23a8d4af832fa614af
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
Reviewed-on: https://gerrit.libreoffice.org/5263
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 470a3f4..f4eb73e 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