0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +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
commit 69389eb6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,10 @@ QString AlignmentItemEditor::displayValue() const
void AlignmentItemEditor::setPropertyValue(QVariant value) 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]);
} }
} }