oox/source/core/xmlfilterbase.cxx |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 09e064adc51bf4a26a4f316d42945be9cfbd2c95
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Fri Mar 21 14:24:36 2014 +0100

    First check if this is the one we search for, then extract.
    
    Change-Id: Ie98dc14b743983e68f126ed4b7a7f00b637957d3

diff --git a/oox/source/core/xmlfilterbase.cxx 
b/oox/source/core/xmlfilterbase.cxx
index 5fc7c87..9c7ee32 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -666,13 +666,12 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< 
XDocumentProperties > xProp
     uno::Sequence<beans::NamedValue> aStats = 
xProperties->getDocumentStatistics();
     for (sal_Int32 i = 0; i < aStats.getLength(); ++i)
     {
-        sal_Int32 nValue = 0;
-        if (aStats[i].Value >>= nValue)
+        if (aStats[i].Name == "ParagraphCount")
         {
-            OUString aValue = OUString::number(nValue);
-            if (aStats[i].Name == "ParagraphCount")
+            sal_Int32 nValue = 0;
+            if (aStats[i].Value >>= nValue)
             {
-                writeElement(pAppProps, XML_Paragraphs, aValue);
+                writeElement(pAppProps, XML_Paragraphs, 
OUString::number(nValue));
                 break;
             }
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to