diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-10-23 17:17:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-10-23 18:34:33 +0200 |
commit | ff502f409fd73249a6a94c579d19905144aa5ba8 (patch) | |
tree | 84a16c502db516af51c4db46672ade3e2883d81e | |
parent | d4867ddae67def9a52d7e3e027e261323f32c8f9 (diff) |
Fraction: Revert "coverity#1247617 there is nothing to do if width is 0"
This reverts commit 6016287fd064568ab4052932b2e6c0ee4a601bbd.
-rw-r--r-- | svx/source/dialog/connctrl.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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<sal_Int64> aFrac1( aWinSize.Width(), aRect.GetWidth() ); boost::rational<sal_Int64> aFrac2( aWinSize.Height(), aRect.GetHeight() ); boost::rational<sal_Int64> aMinFrac( aFrac1 <= aFrac2 ? aFrac1 : aFrac2 ); |