From 401d691d40df404ec0a4fc2c06d438deff796ca6 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 24 Sep 2014 15:00:22 +0200 Subject: [PATCH] Qt Designer: Fix range check of double properties. Change-Id: I18348c0e354a8dd9306d40557700e34225c21014 Reviewed-by: Jarek Kobus --- src/shared/qtpropertybrowser/qtpropertymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/qtpropertybrowser/qtpropertymanager.cpp b/src/shared/qtpropertybrowser/qtpropertymanager.cpp index 73a43f0..94c619f 100644 --- a/src/shared/qtpropertybrowser/qtpropertymanager.cpp +++ b/src/shared/qtpropertybrowser/qtpropertymanager.cpp @@ -880,7 +880,7 @@ public: struct Data { - Data() : val(0), minVal(-INT_MAX), maxVal(INT_MAX), singleStep(1), decimals(2) {} + Data() : val(0), minVal(-DBL_MAX), maxVal(DBL_MAX), singleStep(1), decimals(2) {} double val; double minVal; double maxVal; -- 2.7.4