Commit c7a5195b authored by Committed by Sven Neumann
Bug 604078 - Crash when pressing Backspace with Free Select Tool
Make sure we never call gimp_free_select_tool_remove_last_segment() with priv->n_segment_indices being negative, and increase robustness of the code in general. Note that we always halt the tool when backspace is pressed and there are no vertices left. This is to minimize the risk of ending up in an invalid tool state.
Showing with 3 additions and 2 deletions