Merge pull request #1523 from ispyisail/refactor/link-rows-in-place

Fix the project database listing a symbol's links in another order than its file
This commit is contained in:
ispyisail
2026-10-18 19:53:12 +13:00
committed by GitHub
6 changed files with 184 additions and 78 deletions
+10
View File
@@ -2651,6 +2651,16 @@ QDomDocument QETProject::toXml(QHash<int, QByteArray> *kept_folios, QStringList
// Write the elements collection.
project_root.appendChild(m_elements_collection->root().cloneNode(true));
//QET_CHECK_LINK_ROWS=1: say whether the project database's link rows
//are the links each placed symbol saves, in its order, once the
//folios are written. Builds nothing (lazy folios stay as they are):
//a test and debugging aid; it changes nothing.
if (qEnvironmentVariableIntValue("QET_CHECK_LINK_ROWS") == 1) {
const QStringList links = m_data_base.linkRowMismatches();
qWarning().noquote() << "link rows:" << links.size() << "differ"
<< links.mid(0, 5).join(QStringLiteral(", "));
}
m_waiting_link_targets.clear();
return(xml_doc);
}