[Libreoffice-commits] core.git: Branch 'libreoffice-4-1-5' - sc/source

Eike Rathke erack at redhat.com
Tue Feb 4 04:36:10 PST 2014


 sc/source/filter/xml/xmlexprt.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 9cb9d32c7a64bf5789eabe47d901237d78b44a4d
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Feb 4 13:17:31 2014 +0100

    resolved fdo#74493 do not trust aCell.maBaseCell
    
    Regression introduced with 70c61a549184cf8611f7890ac31b0ba4c460cdec on
    4-1 and 68a753b6a36560eb83ba6ebe4fe9897a8759d265 on 4-1-5
    
    Apparently aCell.maBaseCell does not always follow the current cell
    position, so do not trust it. Always explicitly obtain the correct cell.
    
    Change-Id: Ib88de44a326be75c13d37538b8ae56d265b60ee5
    Reviewed-on: https://gerrit.libreoffice.org/7844
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index fe0a33b..09dc864 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -2883,8 +2883,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount)
         case table::CellContentType_TEXT :
             {
                 OUString sFormula(lcl_GetRawString(pDoc, aCellPos));
-                if (aCell.maBaseCell.isEmpty())
-                    aCell.maBaseCell.assign( *pDoc, aCellPos);
+                aCell.maBaseCell.assign( *pDoc, aCellPos);
                 OUString sCellString = aCell.maBaseCell.getString(pDoc);
                 GetNumberFormatAttributesExportHelper()->SetNumberFormatAttributes(
                         sCellString, sFormula, true, true);


More information about the Libreoffice-commits mailing list