forked from qt-creator/qt-creator
QmlDesigner: Remove annotations if auxiliary data is empty
Change-Id: I1692fbafbac747936e1dbb303f306bef311ca5f8 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -932,12 +932,12 @@ void RewriterView::writeAuxiliaryData()
|
||||
auxData.prepend(annotationsStart());
|
||||
auxData.append(annotationsEnd());
|
||||
newText.append(auxData);
|
||||
|
||||
QTextCursor tc(m_textModifier->textDocument());
|
||||
Utils::ChangeSet changeSet;
|
||||
changeSet.replace(0, oldText.length(), newText);
|
||||
changeSet.apply(&tc);
|
||||
}
|
||||
|
||||
QTextCursor tc(m_textModifier->textDocument());
|
||||
Utils::ChangeSet changeSet;
|
||||
changeSet.replace(0, oldText.length(), newText);
|
||||
changeSet.apply(&tc);
|
||||
}
|
||||
|
||||
static void checkNode(QmlJS::SimpleReaderNode::Ptr node, RewriterView *view);
|
||||
|
Reference in New Issue
Block a user