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

coverity#735632 division by zero

Change-Id: I756a701744998c306cc9630b604c20c44750e3b5
üst 6718e5b1
......@@ -155,6 +155,8 @@ void Viewport3D::SetDeviceWindow(const Rectangle& rRect)
break;
}
case AS_HOLD_X:
if (nNewW == 0)
throw o3tl::divide_by_zero();
// Adapt view height to view width
fRatio = (double) nNewH / nNewW;
fTmp = aViewWin.H;
......
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