variable.c: New function var_set_width_and_formats
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 23 Jun 2013 10:07:56 +0000 (12:07 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 24 Jun 2013 16:20:07 +0000 (18:20 +0200)
commitbd981ce2f73ef902f90362913c8cac741f86e1e7
treec2c29db8c5ebe783afa826b526cff5df52dc1690
parentc7037d42254bb3c0e1dac2e1bd6ef95c6db8ba27
variable.c: New function var_set_width_and_formats

Added a new function to set the width and formats of a variable as
an atomic operation. This is necessary to allow values to re-interpreted
without going through an intermediate format and thereby perhaps loosing
information.

Closes bug #39252
src/data/variable.c
src/data/variable.h
src/ui/gui/psppire-var-sheet.c