forked from qt-creator/qt-creator
QmlDesigner: Fix changing of dynamic properties
We have to use lastSourceLocation().end() instead of offset. SourceLocation was refactored and this was forgotten. Change-Id: I6a43b42b48e03b6b289173a85f5a4a98b2a44628 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -142,7 +142,7 @@ void ChangePropertyVisitor::replaceMemberValue(UiObjectMember *propertyMember, b
|
||||
if (publicMember->semicolonToken.isValid())
|
||||
endOffset = publicMember->semicolonToken.end();
|
||||
else
|
||||
endOffset = publicMember->statement->lastSourceLocation().offset;
|
||||
endOffset = publicMember->statement->lastSourceLocation().end();
|
||||
} else {
|
||||
startOffset = publicMember->lastSourceLocation().end();
|
||||
endOffset = startOffset;
|
||||
|
Reference in New Issue
Block a user