Commit b0c5380d authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.FormEditor: crash fix

Anchors and/or anchor targets might be invalid.
e.g.: anchors.left: parent

We have to check this.

Task-number: QTCREATORBUG-11255
Change-Id: Ib939292d0f89cc1d22119972627c03f1e85043db
Reviewed-by: default avatarThomas Hartmann <>
parent ac40c26e
......@@ -211,6 +211,7 @@ static void updateAnchorLinePoints(QPointF *firstPoint, QPointF *secondPoint, co
void AnchorIndicatorGraphicsItem::updateAnchorIndicator(const AnchorLine &sourceAnchorLine, const AnchorLine targetAnchorLine)
if (sourceAnchorLine.isValid() && targetAnchorLine.isValid()) {
m_sourceAnchorLineType = sourceAnchorLine.type();
m_targetAnchorLineType = targetAnchorLine.type();
......@@ -229,6 +230,7 @@ void AnchorIndicatorGraphicsItem::updateAnchorIndicator(const AnchorLine &source
void AnchorIndicatorGraphicsItem::updateBoundingRect()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment