Skip to content

Commit

Permalink
use lower epsilon for double value in property editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 15, 2016
1 parent 99ad0b7 commit e234537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/propertyeditor/PropertyModel.cpp
Expand Up @@ -86,7 +86,7 @@ bool PropertyModel::setData(const QModelIndex& index, const QVariant & value, in
// NOTE: Since 0.14 PropertyFloat uses double precision, so this is maybe unnecessary now?
double d = data.toDouble();
double v = value.toDouble();
if (fabs(d-v) > FLT_EPSILON)
if (fabs(d-v) > DBL_EPSILON)
return item->setData(value);
}
// Special case handling for quantities
Expand Down

0 comments on commit e234537

Please sign in to comment.