Skip to content
Snippets Groups Projects
Commit 339a1fe9 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

compact condition

parent 0edb3cbc
No related branches found
No related tags found
1 merge request!1339GUI: fix masks and projections
......@@ -54,10 +54,8 @@ void PolygonView::addView(IShape2DView* childView)
childItems()[0]->setAcceptHoverEvents(true);
// during the drawing process the polygon is selected
if (isSelected())
pointView->setVisible(true);
else
pointView->setVisible(false);
pointView->setVisible(isSelected());
update_polygon();
connect(pointView, &PolygonPointView::propertyChanged, this, &PolygonView::update_view);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment