From eacbead4f5a4dc7c8db3d60c948e28c199aa2b10 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 9 Jun 2015 15:04:46 +0200 Subject: 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 --- vcl/source/outdev/map.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index a33ef24d4373..c330f19ee6bc 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -402,7 +402,7 @@ static long ImplPixelToLogic( long n, long nDPI, long nMapNum, long nMapDenom, { // To "use" it... (void) nThres; - if (nMapNum == 0) + if (nMapNum == 0 || nDPI == 0) { return 0; } -- cgit