Skip to content

Commit

Permalink
PointSymbolEditorWidget: Update symbol after adding path point
Browse files Browse the repository at this point in the history
When adding a path point by the '+' button the symbol was not updated.
Since the point is normally duplicated this had no visual impact.
However, if no row is selected then a default point at (0,0) is created
which was not shown in this case.
  • Loading branch information
dl3sdo committed Dec 10, 2024
1 parent 35fb02b commit 50692c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/symbols/point_symbol_editor_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@ void PointSymbolEditorWidget::addCoordClicked()
int row = (coords_table->currentRow() < 0) ? coords_table->rowCount() : (coords_table->currentRow() + 1);
updateCoordsTable(); // NOTE: incremental updates (to the curve start boxes) would be possible but mean some implementation effort
coords_table->setCurrentItem(coords_table->item(row, coords_table->currentColumn()));
map->updateAllObjectsWithSymbol(symbol);
emit symbolEdited();
}

void PointSymbolEditorWidget::deleteCoordClicked()
Expand Down

0 comments on commit 50692c6

Please sign in to comment.