Commit e8c96564 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

don't use == to compare floating point values.

2005-01-19  Sven Neumann  <sven@gimp.org>

	* app/display/gimpscalecombobox.c (gimp_scale_combo_box_set_scale):
	don't use == to compare floating point values.
parent cc599127
......@@ -252,7 +252,7 @@ gimp_scale_combo_box_set_scale (GimpScaleComboBox *combo_box,
SCALE, &this,
-1);
if (this == scale)
if (fabs (this - scale) < 0.01)
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment