0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-01 03:29:49 +03:00

Merge pull request #311 from turbin/fixed-crash-issue-dueto-empty-list-reference

to fix the crash issue. due to extractAcceptableValue() function was …
This commit is contained in:
Alexander Arin
2021-01-02 18:31:29 +03:00
committed by GitHub

View File

@@ -160,7 +160,10 @@ QString AlignmentItemEditor::displayValue() const
void AlignmentItemEditor::setPropertyValue(QVariant value)
{
ObjectPropItem::setPropertyValue(extractAcceptableValue(value.toInt())[0]);
QVector<int> _accpepttableValueList= extractAcceptableValue(value.toInt());
if(_accpepttableValueList.isEmpty()) return;
ObjectPropItem::setPropertyValue(_accpepttableValueList[0]);
}
}