summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-22 17:18:58 +0300
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-22 17:22:13 +0300
commit567c945714e0f627b8b7fe638d925b91b8397a9a (patch)
treed215335ce70dd1a405055c05d9b18300de445069 /dive.c
parentabaed4c2756e8c79f4f529bb960b037adedff3bb (diff)
downloadsubsurface-567c945714e0f627b8b7fe638d925b91b8397a9a.tar.gz
Fix the reading of the cylinder start/end pressure from cylinder models
The cylinder model doesn't contain the start/end pressures, they just contain the cylinder type information. So trying to read the start and end pressure from the cylinder model change callback is totally bogus. We need to set the start/end pressures from the cylinder info when we create the cylinder widget, and not touch them when the type changes. So split up the "set_cylinder_spinbuttons()" function in two: one that sets the type information, and one that sets the start/end pressure. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions