diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-09-09 23:15:54 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-09-11 23:22:50 +0200 |
commit | 388edde56431d2cfc0583aabb47c2d766139cc0c (patch) | |
tree | 60355a1aa5b506758ce9df0277f0ff31d35f45ab /oox | |
parent | e910705421b40f3accff684e956854ff68761574 (diff) |
SAL_WARN_IF
Change-Id: Ic2644f8a0f2f1479779aef2d6b0886604c139acb
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 35d837fea4bf..36869e663385 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -707,18 +707,18 @@ void DrawingML::WriteOutline( Reference<XPropertySet> rXPropSet ) } } - if ( nLineWidth <= 0 ) - SAL_WARN("oox", "while writing outline - custom dash - line width was < 0 : " << nLineWidth); - if ( aLineDash.Dashes < 0 ) - SAL_WARN("oox", "while writing outline - custom dash - number of dashes was < 0 : " << aLineDash.Dashes); - if ( aLineDash.Dashes > 0 && aLineDash.DashLen <= 0 ) - SAL_WARN("oox", "while writing outline - custom dash - dash length was < 0 : " << aLineDash.DashLen); - if ( aLineDash.Dots < 0 ) - SAL_WARN("oox", "while writing outline - custom dash - number of dots was < 0 : " << aLineDash.Dots); - if ( aLineDash.Dots > 0 && aLineDash.DotLen <= 0 ) - SAL_WARN("oox", "while writing outline - custom dash - dot length was < 0 : " << aLineDash.DotLen); - if ( aLineDash.Distance <= 0 ) - SAL_WARN("oox", "while writing outline - custom dash - distance was < 0 : " << aLineDash.Distance); + SAL_WARN_IF(nLineWidth <= 0, + "oox", "while writing outline - custom dash - line width was < 0 : " << nLineWidth); + SAL_WARN_IF(aLineDash.Dashes < 0, + "oox", "while writing outline - custom dash - number of dashes was < 0 : " << aLineDash.Dashes); + SAL_WARN_IF(aLineDash.Dashes > 0 && aLineDash.DashLen <= 0, + "oox", "while writing outline - custom dash - dash length was < 0 : " << aLineDash.DashLen); + SAL_WARN_IF(aLineDash.Dots < 0, + "oox", "while writing outline - custom dash - number of dots was < 0 : " << aLineDash.Dots); + SAL_WARN_IF(aLineDash.Dots > 0 && aLineDash.DotLen <= 0, + "oox", "while writing outline - custom dash - dot length was < 0 : " << aLineDash.DotLen); + SAL_WARN_IF(aLineDash.Distance <= 0, + "oox", "while writing outline - custom dash - distance was < 0 : " << aLineDash.Distance); mpFS->endElementNS( XML_a, XML_custDash ); } |