vcl/source/outdev/map.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eacbead4f5a4dc7c8db3d60c948e28c199aa2b10
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Tue Jun 9 15:04:46 2015 +0200

    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

diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index a33ef24..c330f19 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;
    }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to