Kaydet (Commit) edc212a5 authored tarafından Noel Power's avatar Noel Power

fix problematic calc object selection after object create (at non 100% zoom)

sometimes difficult to select custom shapes etc. created at non 100% zoom
levels. workaround was to use selection tool to select an area.

Change-Id: I112a60ebf37a37b16f6af5e70358853088e648a8
üst 8e7a3866
...@@ -943,6 +943,7 @@ void SdrObject::RecalcBoundRect() ...@@ -943,6 +943,7 @@ void SdrObject::RecalcBoundRect()
aOutRect = Rectangle( aOutRect = Rectangle(
(sal_Int32)floor(aRange.getMinX()), (sal_Int32)floor(aRange.getMinY()), (sal_Int32)floor(aRange.getMinX()), (sal_Int32)floor(aRange.getMinY()),
(sal_Int32)ceil(aRange.getMaxX()), (sal_Int32)ceil(aRange.getMaxY())); (sal_Int32)ceil(aRange.getMaxX()), (sal_Int32)ceil(aRange.getMaxY()));
aOutRect -= GetGridOffset(); // don't include grid offset
return; return;
} }
} }
......
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