[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Feb 24 11:45:29 PST 2012


 sc/source/filter/excel/xichart.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 67f37b1de7e64e3225844cfe38b9b1adace3fd85
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Fri Feb 24 14:44:43 2012 -0500

    fdo#40320: Correctly import data point formats in data series.

diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 6caf627..df6a14d 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -2118,8 +2118,9 @@ XclImpChDataFormatRef* XclImpChSeries::GetDataFormatRef( sal_uInt16 nPointIdx )
         XclImpChDataFormatMap::iterator itr = maPointFmts.lower_bound(nPointIdx);
         if (itr == maPointFmts.end() || maPointFmts.key_comp()(nPointIdx, itr->first))
         {
-            // No object exists at this point index position.  Insert a new one.
-            XclImpChDataFormatRef p(new XclImpChDataFormat(GetChRoot()));
+            // No object exists at this point index position.  Insert a new
+            // placeholder.
+            XclImpChDataFormatRef p;
             itr = maPointFmts.insert(itr, XclImpChDataFormatMap::value_type(nPointIdx, p));
         }
         return &itr->second;


More information about the Libreoffice-commits mailing list