From d8053cc1d56431256417ca4942ad1e422a58be7d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 1 Dec 2018 11:58:09 +0100 Subject: [PATCH] fix converting float list to string list in property editor --- src/Gui/propertyeditor/PropertyItem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index bd06c653b7..372c5a5ebe 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -2274,7 +2274,7 @@ QVariant PropertyFloatListItem::value(const App::Property* prop) const QStringList list; const std::vector& value = static_cast(prop)->getValues(); for (std::vector::const_iterator jt = value.begin(); jt != value.end(); ++jt) { - list << QString::number(*jt); + list << QString::number(*jt, 'f', decimals()); } return QVariant(list);