Fix painting outside of grainline bounding rect.
(grafted from cfbfaefb91a4efd42df937bd5d87a2f9459b6f86) --HG-- branch : develop
This commit is contained in:
parent
bc2c5c3277
commit
03e6a4304f
|
@ -556,7 +556,7 @@ void VGrainlineItem::UpdateRectangle()
|
|||
pt2.y() - RECT_WIDTH*sin(m_dRotation - M_PI/2));
|
||||
m_polyBound << QPointF(pt2.x() + RECT_WIDTH*cos(m_dRotation + M_PI/2),
|
||||
pt2.y() - RECT_WIDTH*sin(m_dRotation + M_PI/2));
|
||||
m_rectBoundingBox = m_polyBound.boundingRect();
|
||||
m_rectBoundingBox = m_polyBound.boundingRect().adjusted(-2, -2, 2, 2);
|
||||
setTransformOriginPoint(m_rectBoundingBox.center());
|
||||
|
||||
UpdatePolyResize();
|
||||
|
|
Loading…
Reference in New Issue
Block a user