summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-24 16:48:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-24 16:48:39 +0100
commitd0b43fd581f32b648c94bf6706c1374631297178 (patch)
tree931933b6e2587ed2acbf12f2385dc5a10a25d4e1 /svx
parent8707670cb39f5777cd54f8b180ec342416ef259f (diff)
Properly map from empty aBoundRange to empty rRect
Change-Id: Ic8cf3a71d168f4679347ac493c08fef1daf4ce84
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrgv.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/svx/source/svdraw/svddrgv.cxx b/svx/source/svdraw/svddrgv.cxx
index bdb1ecb9a404..27b74c037e4b 100644
--- a/svx/source/svdraw/svddrgv.cxx
+++ b/svx/source/svdraw/svddrgv.cxx
@@ -141,9 +141,16 @@ void SdrDragView::TakeActionRect(Rectangle& rRect) const
{
// #i95646# is this used..?
const basegfx::B2DRange aBoundRange(mpCurrentSdrDragMethod->getCurrentRange());
- rRect = Rectangle(
- basegfx::fround(aBoundRange.getMinX()), basegfx::fround(aBoundRange.getMinY()),
- basegfx::fround(aBoundRange.getMaxX()), basegfx::fround(aBoundRange.getMaxY()));
+ if (aBoundRange.isEmpty())
+ {
+ rRect.SetEmpty();
+ }
+ else
+ {
+ rRect = Rectangle(
+ basegfx::fround(aBoundRange.getMinX()), basegfx::fround(aBoundRange.getMinY()),
+ basegfx::fround(aBoundRange.getMaxX()), basegfx::fround(aBoundRange.getMaxY()));
+ }
}
}
if (rRect.IsEmpty())