AttributeDoublePtr aReal = aData->real(attributeID());
if (!mySpinBox->hasVariable()) {
aReal->setValue(mySpinBox->value());
- // In order to synchronize value and text
- // If it is not synchronized sometimes it could take vale not as a digit but as a string
- aReal->setText(mySpinBox->text().toStdString());
+ aReal->setText("");
} else {
// Here is a text of a real value or an expression.
std::string aText = mySpinBox->text().toStdString();
double aValue = outText.toDouble(&isDouble);
if (isDouble) {
outValue = aValue;
- // outText = ""; // return empty string, if it's can be converted to a double
+ outText = ""; // return empty string, if it's can be converted to a double
}
aPopup->deleteLater();
}