Kaydet (Commit) eacbead4 authored tarafından Miklos Vajna's avatar Miklos Vajna

vcl: handle nDPI == 0 in ImplPixelToLogic()

To avoid the floating point exception that can be seen sometimes on the
Jenkins_Linux tinderbox during CppunitTest_sw_uiwriter.

Change-Id: I270bfbe9c8fbb4cb3a86f45b5f4c3afb32213b9e
üst 9085cb9a
...@@ -402,7 +402,7 @@ static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom, ...@@ -402,7 +402,7 @@ static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom,
{ {
// To "use" it... // To "use" it...
(void) nThres; (void) nThres;
if (nMapNum == 0) if (nMapNum == 0 || nDPI == 0)
{ {
return 0; return 0;
} }
......
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