sd/source/ui/view/drviewsh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 0f2e6f1fbb42fe33bee3ffd5b5200b17be3382d9 Author: Armin Le Grand <armin.le.gr...@cib.de> Date: Tue Mar 29 13:57:42 2016 +0200 cid#1357164 correct CovertyScan possible DIVIDE_BY_ZERO Also covers cid#1357165, exclude possibility that value equals zero at the same place negative values get excluded Change-Id: If3fd6143fb13f0d29f5fba304f9f337f7a7aa74c Reviewed-on: https://gerrit.libreoffice.org/23592 Reviewed-by: Armin Le Grand <armin.le.gr...@cib.de> Tested-by: Armin Le Grand <armin.le.gr...@cib.de> diff --git a/sd/source/ui/view/drviewsh.cxx b/sd/source/ui/view/drviewsh.cxx index c2ea109..5d40d0e 100644 --- a/sd/source/ui/view/drviewsh.cxx +++ b/sd/source/ui/view/drviewsh.cxx @@ -120,7 +120,7 @@ void DrawViewShell::MakeVisible(const Rectangle& rRect, vcl::Window& rWin) nFreeSpaceX = rRect.GetWidth(); } - if(nFreeSpaceX < 0) + if(nFreeSpaceX <= 0) { SAL_WARN("sd", "The given Rectangle contains values that lead to numerical overflows (!)"); } @@ -165,7 +165,7 @@ void DrawViewShell::MakeVisible(const Rectangle& rRect, vcl::Window& rWin) nFreeSpaceY = rRect.GetHeight(); } - if(nFreeSpaceY < 0) + if(nFreeSpaceY <= 0) { SAL_WARN("sd", "The given Rectangle contains values that lead to numerical overflows (!)"); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits