cleanup: do not compare doubles like this

Cleanup another possibly dangerous compare of doubles.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2018-09-25 12:28:53 +02:00
parent be0468b706
commit 5480d08d15

View file

@ -99,7 +99,7 @@ void qPrefDisplay::disk_divelist_font(bool doSync)
void qPrefDisplay::set_font_size(double value) void qPrefDisplay::set_font_size(double value)
{ {
if (value != prefs.font_size) { if (!IS_FP_SAME(value, prefs.font_size)) {
prefs.font_size = value; prefs.font_size = value;
disk_font_size(true); disk_font_size(true);