diff --git a/src/libs/vwidgets/vgrainlineitem.cpp b/src/libs/vwidgets/vgrainlineitem.cpp index 87b0ce2d8..0a138bb5f 100644 --- a/src/libs/vwidgets/vgrainlineitem.cpp +++ b/src/libs/vwidgets/vgrainlineitem.cpp @@ -564,20 +564,20 @@ void VGrainlineItem::UpdateRectangle() setTransformOriginPoint(m_rectBoundingBox.center()); m_polyResize.clear(); - QPointF ptA = m_polyBound.at(3); + QPointF ptA = m_polyBound.at(1); m_polyResize << ptA; const double dSize = m_dScale * RESIZE_RECT_SIZE; - ptA.setX(ptA.x() + dSize*cos(m_dRotation - M_PI/2)); - ptA.setY(ptA.y() - dSize*sin(m_dRotation - M_PI/2)); + ptA.setX(ptA.x() - dSize*cos(m_dRotation - M_PI/2)); + ptA.setY(ptA.y() + dSize*sin(m_dRotation - M_PI/2)); m_polyResize << ptA; - ptA.setX(ptA.x() - dSize*cos(m_dRotation)); - ptA.setY(ptA.y() + dSize*sin(m_dRotation)); + ptA.setX(ptA.x() + dSize*cos(m_dRotation)); + ptA.setY(ptA.y() - dSize*sin(m_dRotation)); m_polyResize << ptA; - ptA.setX(ptA.x() + dSize*cos(m_dRotation + M_PI/2)); - ptA.setY(ptA.y() - dSize*sin(m_dRotation + M_PI/2)); + ptA.setX(ptA.x() - dSize*cos(m_dRotation + M_PI/2)); + ptA.setY(ptA.y() + dSize*sin(m_dRotation + M_PI/2)); m_polyResize << ptA; prepareGeometryChange();