Cppcheck reports "Division by zero" in new.cxx (sfx2 module)

Caolán McNamara caolanm at redhat.com
Mon Mar 24 06:38:26 PDT 2014


On Sat, 2014-03-22 at 06:50 -0700, julien2412 wrote:
> or should we do something completely different?

I'd just return early if the width or height is <= 0.
Though I think I'd move the SetLineColor/SetFillColor and "DrawRect" to
the top of the method so 4 pixel high/wide windows still get blanked
out.

C.



More information about the LibreOffice mailing list