mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40: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
|
||||
* and add a qgraphicstextitem for show the position of the master
|
||||
*/
|
||||
void SlaveElement::updateLabel() {
|
||||
|
||||
QString label = this->taggedText("label")->toPlainText();
|
||||
void SlaveElement::updateLabel()
|
||||
{
|
||||
QString label;
|
||||
if (ElementTextItem *eti = this->taggedText("label"))
|
||||
label = eti->toPlainText();
|
||||
QString Xreflabel;
|
||||
bool no_editable = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user