Hard code fix for preventing element autonumbering crashing QElectro until correction. Minor: assign project variables to element label

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4564 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
dfochi
2016-07-06 14:46:53 +00:00
parent 522759e8b3
commit d17ef77cc2
2 changed files with 15 additions and 0 deletions

View File

@@ -271,6 +271,7 @@ void CustomElement::paint(QPainter *qp, const QStyleOptionGraphicsItem *options)
instructions.
*/
void CustomElement::parseLabels() {
return;
if ((this->taggedText("label")!= NULL) && (location().projectId()!=-1) && (this->taggedText("label")->toPlainText()=="_")) { //element is being added
QXmlStreamReader rxml;
QString path[10];