summaryrefslogtreecommitdiff
path: root/svx/source/dialog/connctrl.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-10-23 17:17:25 +0200
committerJan Holesovsky <kendy@collabora.com>2014-10-23 18:34:33 +0200
commitff502f409fd73249a6a94c579d19905144aa5ba8 (patch)
tree84a16c502db516af51c4db46672ade3e2883d81e /svx/source/dialog/connctrl.cxx
parentd4867ddae67def9a52d7e3e027e261323f32c8f9 (diff)
Fraction: Revert "coverity#1247617 there is nothing to do if width is 0"
Diffstat (limited to 'svx/source/dialog/connctrl.cxx')
-rw-r--r--svx/source/dialog/connctrl.cxx2
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 );