missing-val-dialog.c: fixed bug #45419 - added value type checks
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 28 Jun 2015 16:42:46 +0000 (18:42 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 28 Jun 2015 17:39:25 +0000 (19:39 +0200)
commit1ba340431adf57259c6bbae1dd58bafd78cce84b
tree44a9e07fba28bec6d2492a9a67b0ace3f294e08d
parent5e74eab9f7bb7f4241cf24946dce0e84833094b8
missing-val-dialog.c: fixed bug #45419 - added value type checks

This patch fixes bug #45419:
psppire crashes when entering missing data in new string variable.

The missing value width is now derived from the variable type. I noticed that
there are currently no type checks and no detailed warnings. I added the type
checks which were already provided by data_in and forward them to the existing
error dialog box. If an error is detected, the focus of the dialog box is
set to the field which produces the error.
src/ui/gui/missing-val-dialog.c