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 Dec 10, 2024
1 parent 50692c6 commit 35fecd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/symbols/point_symbol_editor_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,11 @@ void PointSymbolEditorWidget::updateCoordsTable()
if (num_rows > 0 && path->parts().front().isClosed())
--num_rows;
if (path->getSymbol()->getType() == Symbol::Line)
{
const QSignalBlocker blocker(line_closed_check);
line_closed_check->setChecked(num_rows > 0 && path->parts().front().isClosed());
line_closed_check->setEnabled(num_rows > 0);
}
}

coords_table->setRowCount(num_rows);
Expand Down

0 comments on commit 35fecd8

Please sign in to comment.