mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +01:00
Fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4579 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -125,9 +125,11 @@ void SlaveElement::unlinkElement(Element *elmt)
|
|||||||
* the label show the string tagged by "label" of the master
|
* the label show the string tagged by "label" of the master
|
||||||
* and add a qgraphicstextitem for show the position of the master
|
* and add a qgraphicstextitem for show the position of the master
|
||||||
*/
|
*/
|
||||||
void SlaveElement::updateLabel() {
|
void SlaveElement::updateLabel()
|
||||||
|
{
|
||||||
QString label = this->taggedText("label")->toPlainText();
|
QString label;
|
||||||
|
if (ElementTextItem *eti = this->taggedText("label"))
|
||||||
|
label = eti->toPlainText();
|
||||||
QString Xreflabel;
|
QString Xreflabel;
|
||||||
bool no_editable = false;
|
bool no_editable = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user