From e2345374ca42ed02eddf6d8dc191e84e97293c85 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 15 Aug 2016 10:59:27 +0200 Subject: [PATCH] use lower epsilon for double value in property editor --- src/Gui/propertyeditor/PropertyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyModel.cpp b/src/Gui/propertyeditor/PropertyModel.cpp index e9ec1703089a..8ab48760013c 100644 --- a/src/Gui/propertyeditor/PropertyModel.cpp +++ b/src/Gui/propertyeditor/PropertyModel.cpp @@ -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