mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user