Fix crash when a .qet file with 0 diagrams.

This commit is contained in:
joshua
2019-09-27 19:25:38 +02:00
parent 2caaa2fae6
commit eba9148924

View File

@@ -882,8 +882,11 @@ void ProjectView::loadDiagrams()
addDiagram(sv); addDiagram(sv);
} }
this->currentDiagram()->diagram()->loadElmtFolioSeq(); if (DiagramView *dv = currentDiagram())
this->currentDiagram()->diagram()->loadCndFolioSeq(); {
dv->diagram()->loadElmtFolioSeq();
dv->diagram()->loadCndFolioSeq();
}
QSettings settings; QSettings settings;
// If project have the folios list, move it at the beginning of the project // If project have the folios list, move it at the beginning of the project