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,11 +141,18 @@ void SdrDragView::TakeActionRect(Rectangle& rRect) const ...@@ -141,11 +141,18 @@ void SdrDragView::TakeActionRect(Rectangle& rRect) const
{ {
// #i95646# is this used..? // #i95646# is this used..?
const basegfx::B2DRange aBoundRange(mpCurrentSdrDragMethod->getCurrentRange()); const basegfx::B2DRange aBoundRange(mpCurrentSdrDragMethod->getCurrentRange());
if (aBoundRange.isEmpty())
{
rRect.SetEmpty();
}
else
{
rRect = Rectangle( rRect = Rectangle(
basegfx::fround(aBoundRange.getMinX()), basegfx::fround(aBoundRange.getMinY()), basegfx::fround(aBoundRange.getMinX()), basegfx::fround(aBoundRange.getMinY()),
basegfx::fround(aBoundRange.getMaxX()), basegfx::fround(aBoundRange.getMaxY())); basegfx::fround(aBoundRange.getMaxX()), basegfx::fround(aBoundRange.getMaxY()));
} }
} }
}
if (rRect.IsEmpty()) if (rRect.IsEmpty())
{ {
rRect=Rectangle(aDragStat.GetNow(),aDragStat.GetNow()); rRect=Rectangle(aDragStat.GetNow(),aDragStat.GetNow());
......
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