diff --git a/sd/source/ui/view/drviewsh.cxx b/sd/source/ui/view/drviewsh.cxx index c2ea1094186a..5d40d0e4d2a4 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 (!)"); }