Kaydet (Commit) 5f305a05 authored tarafından David Tardon's avatar David Tardon

coverity#735627 coverity#735628 division by zero

Change-Id: If5a1f749ffb57cd4f2f8d53094317c96a787bb33
üst 40240d33
......@@ -19,6 +19,7 @@
#include <dragmt3d.hxx>
#include <o3tl/numeric.hxx>
#include <svx/svdpagv.hxx>
#include <svx/dialmgr.hxx>
#include <svx/svddrgmt.hxx>
......@@ -345,6 +346,8 @@ void E3dDragRotate::MoveSdrDrag(const Point& rPnt)
}
else
{
if ((maFullBound.GetWidth() == 0) || (maFullBound.GetHeight() == 0))
throw o3tl::divide_by_zero();
fWAngle = 90.0 * (double)(rPnt.X() - maLastPos.X())
/ (double)maFullBound.GetWidth();
fHAngle = 90.0 * (double)(rPnt.Y() - maLastPos.Y())
......
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