Skip to content

Commit

Permalink
fix wrong selected bounding box for elliptic arc
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasilnikov Sergey committed Oct 9, 2024
1 parent 6495e8f commit e3dbb0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qucs/paintings/ellipsearc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ void EllipseArc::paint(QPainter *painter) {
painter->setPen(QPen(Qt::white, Pen.width(), Pen.style()));
painter->drawArc(cx, cy, x2, y2, Angle, ArcLen);

painter->setPen(QPen(Qt::darkRed, 2));

misc::draw_resize_handle(painter, QPoint{cx, cy});
misc::draw_resize_handle(painter, QPoint{cx, y2});
misc::draw_resize_handle(painter, QPoint{x2, cy});
misc::draw_resize_handle(painter, QPoint{x2, y2});
misc::draw_resize_handle(painter, QPoint{cx, cy + y2});
misc::draw_resize_handle(painter, QPoint{cx + x2, cy});
misc::draw_resize_handle(painter, QPoint{cx + x2, cy + y2});
}
painter->restore();
}
Expand Down

0 comments on commit e3dbb0e

Please sign in to comment.