Fix crash when attempting to add a new variable in the middle of the dictionary.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 4 Jul 2018 11:12:25 +0000 (13:12 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 4 Jul 2018 11:15:53 +0000 (13:15 +0200)
commitca1382f24fd0a8a90dd65daf98a279d6a549d9da
tree55d783b05eb94f83859ec1bfdd9f87bf82fdffb8
parentb1305cb31c0a8aabe82ceb952312d10ac2748145
Fix crash when attempting to add a new variable in the middle of the dictionary.

Fixes bug #52551.

* src/ui/gui/psppire-variable-sheet.c (change_var_property): Don't attempt to
  alter a variable property if it's index is more than one below the last index.
src/ui/gui/psppire-variable-sheet.c