• Martin Nordholts's avatar
    Bug 604078 - Crash when pressing Backspace with Free Select Tool · 46c91ebc
    Martin Nordholts authored
    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.
    (cherry picked from commit c7a5195b)
gimpfreeselecttool.c 53.6 KB