Kaydet (Commit) 388edde5 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

SAL_WARN_IF

Change-Id: Ic2644f8a0f2f1479779aef2d6b0886604c139acb
üst e9107054
...@@ -707,18 +707,18 @@ void DrawingML::WriteOutline( Reference<XPropertySet> rXPropSet ) ...@@ -707,18 +707,18 @@ void DrawingML::WriteOutline( Reference<XPropertySet> rXPropSet )
} }
} }
if ( nLineWidth <= 0 ) SAL_WARN_IF(nLineWidth <= 0,
SAL_WARN("oox", "while writing outline - custom dash - line width was < 0 : " << nLineWidth); "oox", "while writing outline - custom dash - line width was < 0 : " << nLineWidth);
if ( aLineDash.Dashes < 0 ) SAL_WARN_IF(aLineDash.Dashes < 0,
SAL_WARN("oox", "while writing outline - custom dash - number of dashes was < 0 : " << aLineDash.Dashes); "oox", "while writing outline - custom dash - number of dashes was < 0 : " << aLineDash.Dashes);
if ( aLineDash.Dashes > 0 && aLineDash.DashLen <= 0 ) SAL_WARN_IF(aLineDash.Dashes > 0 && aLineDash.DashLen <= 0,
SAL_WARN("oox", "while writing outline - custom dash - dash length was < 0 : " << aLineDash.DashLen); "oox", "while writing outline - custom dash - dash length was < 0 : " << aLineDash.DashLen);
if ( aLineDash.Dots < 0 ) SAL_WARN_IF(aLineDash.Dots < 0,
SAL_WARN("oox", "while writing outline - custom dash - number of dots was < 0 : " << aLineDash.Dots); "oox", "while writing outline - custom dash - number of dots was < 0 : " << aLineDash.Dots);
if ( aLineDash.Dots > 0 && aLineDash.DotLen <= 0 ) SAL_WARN_IF(aLineDash.Dots > 0 && aLineDash.DotLen <= 0,
SAL_WARN("oox", "while writing outline - custom dash - dot length was < 0 : " << aLineDash.DotLen); "oox", "while writing outline - custom dash - dot length was < 0 : " << aLineDash.DotLen);
if ( aLineDash.Distance <= 0 ) SAL_WARN_IF(aLineDash.Distance <= 0,
SAL_WARN("oox", "while writing outline - custom dash - distance was < 0 : " << aLineDash.Distance); "oox", "while writing outline - custom dash - distance was < 0 : " << aLineDash.Distance);
mpFS->endElementNS( XML_a, XML_custDash ); mpFS->endElementNS( XML_a, XML_custDash );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment