summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-25 12:28:53 +0200
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2018-09-25 16:01:39 +0200
commit5480d08d15aca6710ad900b5084d786798bef7ab (patch)
tree2895d975e151ce7e4b610a484f51e7a33d28b02c
parentbe0468b7061f86402e0ce80d03bcf1f39b199f14 (diff)
downloadsubsurface-5480d08d15aca6710ad900b5084d786798bef7ab.tar.gz
cleanup: do not compare doubles like this
Cleanup another possibly dangerous compare of doubles. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--core/settings/qPrefDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/settings/qPrefDisplay.cpp b/core/settings/qPrefDisplay.cpp
index ca340d504..6c5be8f3a 100644
--- a/core/settings/qPrefDisplay.cpp
+++ b/core/settings/qPrefDisplay.cpp
@@ -99,7 +99,7 @@ void qPrefDisplay::disk_divelist_font(bool doSync)
void qPrefDisplay::set_font_size(double value)
{
- if (value != prefs.font_size) {
+ if (!IS_FP_SAME(value, prefs.font_size)) {
prefs.font_size = value;
disk_font_size(true);