You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2012/11/14 22:58:04 UTC

svn commit: r1409463 - /incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx

Author: arist
Date: Wed Nov 14 21:58:04 2012
New Revision: 1409463

URL: http://svn.apache.org/viewvc?rev=1409463&view=rev
Log:
writerfilter10_31_55b4d6b8eaf0.patch
# HG changeset patch
# User hb <hb...@openoffice.org>
# Date 1300894382 -3600
# Node ID 55b4d6b8eaf04fd69479337acde6623dc7976333
# Parent  fd65d2c21e88a82ea3864bab581a7bb84aeea5fd
writerfilter10: unxsols4.pro: Handle warning in TagLogger.cxx


Modified:
    incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx

Modified: incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx?rev=1409463&r1=1409462&r2=1409463&view=diff
==============================================================================
--- incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx (original)
+++ incubator/ooo/branches/gbuild/main/writerfilter/source/resourcemodel/TagLogger.cxx Wed Nov 14 21:58:04 2012
@@ -178,14 +178,16 @@ string XMLTag::toTree(const string & sIn
 
     string sResult;
     
-    size_t nSize = sIndent.size();
-    if (nSize > 1)
     {
-        sResult += sIndent.substr(0, nSize - 2) + "+-\\" + mTag;
-    }
-    else
-    {
-        sResult += "\\" + mTag;
+        size_t nSize = sIndent.size();
+        if (nSize > 1)
+        {
+            sResult += sIndent.substr(0, nSize - 2) + "+-\\" + mTag;
+        }
+        else
+        {
+            sResult += "\\" + mTag;
+        }
     }
         
     XMLAttributes_t::const_iterator aIt = mAttrs.begin();