Skip to content

Commit

Permalink
PointSymbolEditorWidget: Fix 'Line closed' checkmark
Browse files Browse the repository at this point in the history
When the 'Line closed' checkmark was set and all lines were removed the
checkbox remained set but became disabled.
  • Loading branch information
dl3sdo committed Sep 18, 2022
1 parent c51d45e commit 57003f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/symbols/point_symbol_editor_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,12 @@ void PointSymbolEditorWidget::updateCoordsTable()
if (num_rows > 0 && path->parts().front().isClosed())
--num_rows;
if (path->getSymbol()->getType() == Symbol::Line)
{
line_closed_check->blockSignals(true);
line_closed_check->setChecked(num_rows > 0 && path->parts().front().isClosed());
line_closed_check->setEnabled(num_rows > 0);
line_closed_check->blockSignals(false);
}
}

coords_table->setRowCount(num_rows);
Expand Down

0 comments on commit 57003f9

Please sign in to comment.