Kaydet (Commit) d0b43fd5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Properly map from empty aBoundRange to empty rRect

Change-Id: Ic8cf3a71d168f4679347ac493c08fef1daf4ce84
üst 8707670c
......@@ -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())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment