mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue