Kaydet (Commit) d7763d97 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Assume that nDPI should never be zero in ImplLogicToPixel

...(same as is already done in ImplPixelToLogic), and that
eacbead4 "vcl: handle nDPI == 0 in
ImplPixelToLogic()" was a misguided attempt at fixing symptoms of the problem
fixed with 670100fc "Remove FastLoader
optimization."

Change-Id: Ia42c6c7c7026f3a0b71e79938b33c140fec0afa6
üst 0f197698
...@@ -400,9 +400,10 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom, ...@@ -400,9 +400,10 @@ static long ImplLogicToPixel( long n, long nDPI, long nMapNum, long nMapDenom,
static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom, static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom,
long nThres ) long nThres )
{ {
assert(nDPI > 0);
// To "use" it... // To "use" it...
(void) nThres; (void) nThres;
if (nMapNum == 0 || nDPI == 0) if (nMapNum == 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