Fix crash

This commit is contained in:
joshua
2023-01-08 16:20:13 +01:00
parent 1e2bdc203b
commit b1f6b1823a
3 changed files with 21 additions and 9 deletions

View File

@@ -924,12 +924,14 @@ QDomDocument Diagram::toXml(bool whole_content) {
auto table = static_cast<QetGraphicsTableItem *>(qgi);
if (whole_content || table->isSelected())
table_vector << table;
break;
}
case TerminalStripItem::Type: {
const auto strip = static_cast<TerminalStripItem *>(qgi);
if (whole_content || strip->isSelected()) {
strip_vector << strip;
}
break;
}
}
}