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:
parent
be0468b706
commit
5480d08d15
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user