Fix copy and paste crash of Elements with Sequential Autonum

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4593 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
dfochi
2016-07-26 20:40:54 +00:00
parent d6f1381631
commit 4814ac812d
2 changed files with 10 additions and 6 deletions

View File

@@ -1202,6 +1202,8 @@ QString Conductor::text() const {
* @return label with variables assigned
*/
QString Conductor::assignVariables(QString label) {
//The check below was introduced to avoid crash caused by the addition of terminal elements
//Needs further debbugging.
if (diagram() == NULL) return label;
//Titleblock Variables
for (int i = 0; i < diagram()->border_and_titleblock.additionalFields().count(); i++)