Skip to content

Commit

Permalink
don't unset as dirty if it is due to another to-be-deleted layer
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Apr 5, 2020
1 parent 84f8685 commit 7f13889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synfig-studio/src/synfigapp/actions/layerremove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ Action::LayerRemove::perform()
std::get<2>(*iter) = layer->get_canvas();

// Mark ourselves as dirty if necessary
set_dirty(layer->active());
if (layer->active())
set_dirty(true);

// Remove the layer from the canvas
subcanvas->erase(iter2);
Expand Down

0 comments on commit 7f13889

Please sign in to comment.