Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Phocacius committed Jun 26, 2024
2 parents 78a8fba + 4c1447b commit f5e5eab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.0.0
* prevent Draw Donut On Non-Digitizer Features ([PR#120](https://github.com/mapbender/mapbender-digitizer/pull/120))
* Remove bug that allowed a feature to revert to a status it had before the last save. ([PR#123] https://github.com/mapbender/mapbender-digitizer/pull/123)
* Prevent Draw Donut On Non-Digitizer Features ([PR#120](https://github.com/mapbender/mapbender-digitizer/pull/120))
* Prevent self intersection of polygons not only on modification, but on creation as well ([PR#118](https://github.com/mapbender/mapbender-digitizer/pull/118))
* Allow leaving modification mode on pressing escape ([PR#118](https://github.com/mapbender/mapbender-digitizer/pull/118))
* Allow deletion of vertices on single click ([PR#118](https://github.com/mapbender/mapbender-digitizer/pull/118))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
getMenuItems: function(feature) {
var items = [];
var widget = this.widget;
if (feature.get('dirty') && feature.get('oldGeometry')) {
if (feature.get('dirty') && feature.get('oldGeometry') && !feature.get("editing")) { // show contextmenu only when feature not in editing mode
items.push({
text: Mapbender.trans('mb.digitizer.revert.geometry'),
callback: function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@
feature.setGeometry(geometry);
widget._replaceItemData(itemSchema, feature, savedItem.properties || {});
feature.set('dirty', false);
feature.set('oldGeometry', geometry);
widget.tableRenderer.refreshRow(feature, false);
widget._saveEvent(itemSchema, feature, widget._getUniqueItemId(feature));
}
Expand Down

0 comments on commit f5e5eab

Please sign in to comment.