[ooo-build-commit] patches/dev300

Petr Mladek pmladek at kemper.freedesktop.org
Wed Oct 14 05:05:09 PDT 2009


 patches/dev300/writerfilter-docx-numbering.diff |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 4ee9fe0265eced3fff60f8aaa84354da0897c129
Author: Petr Mladek <pmladek at suse.cz>
Date:   Wed Oct 14 14:02:59 2009 +0200

    Fix printing of debug messages
    
    * patches/dev300/writerfilter-docx-numbering.diff: include stdio.h when
      DEBUG is defined to avoid compiler errors on recent distros; print
      debug messages only when DEBUG is defined

diff --git a/patches/dev300/writerfilter-docx-numbering.diff b/patches/dev300/writerfilter-docx-numbering.diff
index e98a42e..e048395 100644
--- a/patches/dev300/writerfilter-docx-numbering.diff
+++ b/patches/dev300/writerfilter-docx-numbering.diff
@@ -2366,7 +2366,7 @@ new file mode 100644
 index 0000000..65788d0
 --- /dev/null
 +++ writerfilter/source/dmapper/NumberingManager.cxx
-@@ -0,0 +1,995 @@
+@@ -0,0 +1,1001 @@
 +#include "ConversionHelper.hxx"
 +#include "NumberingManager.hxx"
 +#include "StyleSheetTable.hxx"
@@ -2384,6 +2384,10 @@ index 0000000..65788d0
 +#include <com/sun/star/text/PositionAndSpaceMode.hpp>
 +#include <com/sun/star/text/XChapterNumberingSupplier.hpp>
 +
++#if DEBUG
++#include <stdio.h>
++#endif
++
 +using namespace rtl;
 +using namespace com::sun::star;
 +
@@ -2412,9 +2416,11 @@ index 0000000..65788d0
 +        if ( !( aValue >>= sValue ) && ( aValue >>= nValue ) )
 +            sValue = OUString::valueOf( nValue );
 +
++#if DEBUG
 +        fprintf( stderr, "Property %s: %s\n", 
 +                OUSTR_TO_C( aProps[i].Name ),
 +                OUSTR_TO_C( sValue ) );
++#endif
 +    }
 +}
 +


More information about the ooo-build-commit mailing list