From 50692c6de58e5b5d2d87f43ad8a0abd5dd677a63 Mon Sep 17 00:00:00 2001 From: Matthias Kuehlewein Date: Sun, 18 Sep 2022 11:43:35 +0200 Subject: [PATCH] PointSymbolEditorWidget: Update symbol after adding path point 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. --- src/gui/symbols/point_symbol_editor_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/symbols/point_symbol_editor_widget.cpp b/src/gui/symbols/point_symbol_editor_widget.cpp index 02d6fdd58..6f64cf53a 100644 --- a/src/gui/symbols/point_symbol_editor_widget.cpp +++ b/src/gui/symbols/point_symbol_editor_widget.cpp @@ -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()