From 5480d08d15aca6710ad900b5084d786798bef7ab Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 25 Sep 2018 12:28:53 +0200 Subject: cleanup: do not compare doubles like this Cleanup another possibly dangerous compare of doubles. Signed-off-by: Jan Mulder --- core/settings/qPrefDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2