From ff502f409fd73249a6a94c579d19905144aa5ba8 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 23 Oct 2014 17:17:25 +0200 Subject: Fraction: Revert "coverity#1247617 there is nothing to do if width is 0" This reverts commit 6016287fd064568ab4052932b2e6c0ee4a601bbd. --- svx/source/dialog/connctrl.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx index 43a6989f086d..f96c076028a5 100644 --- a/svx/source/dialog/connctrl.cxx +++ b/svx/source/dialog/connctrl.cxx @@ -113,8 +113,6 @@ void SvxXConnectionPreview::AdaptSize() aNewSize.Height()= (long) ( (double) nWidth / fRectWH ); } - if (aRect.GetWidth() == 0) - return; boost::rational aFrac1( aWinSize.Width(), aRect.GetWidth() ); boost::rational aFrac2( aWinSize.Height(), aRect.GetHeight() ); boost::rational aMinFrac( aFrac1 <= aFrac2 ? aFrac1 : aFrac2 ); -- cgit