]> git.tdb.fi Git - ext/subsurface.git/commit
Fix the reading of the cylinder start/end pressure from cylinder models
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 22 Oct 2011 14:18:58 +0000 (17:18 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 22 Oct 2011 14:22:13 +0000 (17:22 +0300)
commit567c945714e0f627b8b7fe638d925b91b8397a9a
treed215335ce70dd1a405055c05d9b18300de445069
parentabaed4c2756e8c79f4f529bb960b037adedff3bb
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>
equipment.c