Kaydet (Commit) e271435c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1415515 Division or modulo by float zero

and

coverity#1415513 Division or modulo by float zero

Change-Id: I91ffc794e70f9204a39a5ae1b2a6c59ecbe31adf
üst 5445de14
......@@ -291,6 +291,11 @@ namespace emfplushelper
void EmfPlusHelperData::mappingChanged()
{
if (mnPixX == 0 || mnPixY == 0)
{
SAL_WARN("cppcanvas.emf", "dimensions in pixels is 0");
return;
}
// Call when mnMmX/mnMmY/mnPixX/mnPixY/mnFrameLeft/mnFrameTop/maWorldTransform/ changes.
// Currently not used are mnHDPI/mnVDPI/mnFrameRight/mnFrameBottom. *If* these should
// be used in the future, this method will need to be called.
......
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