[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

David Tardon dtardon at kemper.freedesktop.org
Mon Jul 18 22:24:54 PDT 2011


 sc/source/filter/xml/xmlimprt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 966c5a3169e498c24488e505c0ff247bc0a6593a
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Mon Jul 18 12:18:44 2011 -0400

    Correctly use adjusted range strings for range name import.
    
    ScXMLConverter::ParseFormula() was called on the range name string
    to correctly fix range string such as '$Sheet1.$A$1:.$A$3' to
    '$Sheet1.$A$1:$A$3' (remove the dot from the end cell address).  But
    we weren't using the corrected string when creating a new range name
    instance during the ODS import.  This commit fixes it.
    
    Signed-off-by: David Tardon <dtardon at redhat.com>

diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 83f599f..7210e13 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -2904,7 +2904,7 @@ public:
                     ScXMLConverter::ParseFormula(aContent, false);
 
                 ScRangeData* pData = new ScRangeData(
-                    mpDoc, r.sName, r.sContent, aPos, RT_NAME, r.eGrammar);
+                    mpDoc, r.sName, aContent, aPos, RT_NAME, r.eGrammar);
                 mrRangeName.insert(pData);
             }
         }


More information about the Libreoffice-commits mailing list