diff options
author | Radek Doulik <rodo@novell.com> | 2011-07-26 14:21:36 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-07-26 14:30:52 +0200 |
commit | e5e782730d2badda8178b72159e06e0c444217c3 (patch) | |
tree | 12476da053a4c1fe326e7e086b54977557dd5bda /svtools | |
parent | 067362e1ce029a57fde2152e9e4339e7a97b9c22 (diff) |
enable emf debug dump when dbglevel > 1
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/wmf/enhwmf.cxx | 7 | ||||
-rw-r--r-- | svtools/source/filter/wmf/winmtf.cxx | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/svtools/source/filter/wmf/enhwmf.cxx b/svtools/source/filter/wmf/enhwmf.cxx index d0bff3134467..8f9074d5bb7e 100644 --- a/svtools/source/filter/wmf/enhwmf.cxx +++ b/svtools/source/filter/wmf/enhwmf.cxx @@ -159,8 +159,11 @@ #define EMR_SETLINKEDUFIS 119 #define EMR_SETTEXTJUSTIFICATION 120 +#if OSL_DEBUG_LEVEL > 1 +#define EMFP_DEBUG(x) x +#else #define EMFP_DEBUG(x) -//#define EMFP_DEBUG(x) x +#endif //----------------------------------------------------------------------------------- @@ -288,7 +291,7 @@ void EnhWMFReader::ReadEMFPlusComment(sal_uInt32 length, sal_Bool& bHaveDC) // GetDC if( type == 16388 ) { bHaveDC = true; - EMFP_DEBUG(printf ("\t\tEMF+ lock DC (device context)\n", type)); + EMFP_DEBUG(printf ("\t\tEMF+ lock DC (device context)\n")); } //Get the length of the remaining data of this record based diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx index 48acdcb9f52b..4c6e73980385 100644 --- a/svtools/source/filter/wmf/winmtf.cxx +++ b/svtools/source/filter/wmf/winmtf.cxx @@ -44,8 +44,11 @@ #define WIN_MTF_MAX_CLIP_DEPTH 16 +#if OSL_DEBUG_LEVEL > 1 +#define EMFP_DEBUG(x) x +#else #define EMFP_DEBUG(x) -//#define EMFP_DEBUG(x) x +#endif void WinMtfClipPath::intersectClipRect( const Rectangle& rRect ) { |