summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 05:00:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 05:02:08 -0800
commit1a5e94006c5bcdf648ca791d1d9d1d44f1ec1a03 (patch)
tree4236d0c3135d42e5f5cb7f747c5583b1bf0b04ca /qt-ui/preferences.cpp
parent4619bfd9ca1d4ee6c32acd8776a4dd460dc3835f (diff)
downloadsubsurface-1a5e94006c5bcdf648ca791d1d9d1d44f1ec1a03.tar.gz
Sanity check on gas percentages
O2 + He + N2 = 100% (well, there are some other gases, but this is close enough) Since N2 can't be negative that means we should refuse any change where O2 + He > 100% (or o2.permille + he.permille > 1000). Fixes #280 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
0 files changed, 0 insertions, 0 deletions