[qet] Diagram saved with errors

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Dear

Yesterday a partner saved a diagram and close qet without problems, after that, he cant open the diagram.
We are using a dev version from few days ago.
What I saw:
In conductor.cpp the constructor ends because the following check.

    // en cas d'echec de l'ajout (conducteur deja existant notamment)
    if (!ajout_p1 || !ajout_p2)
    {
        return;
    }

Then because the statement is after

// ajout du champ de texte editable
text_item = new ConductorTextItem(properties_.text, this);

text_item is not created.

In diagram.cpp at line 763

Conductor *c = new Conductor(table_adr_id.value(id_p1), table_adr_id.value(id_p2));
addItem(c);
c -> fromXml(f);
added_conductors << c;

text_item is used inside fromXml then the software crash.

attached the qet file.

Tks in advance

Marcelo Miacca

AERIS INGENIERÍA SA

Celular 0294 154235132
Email: mmiacca@xxxxxxxxxxxxxxxxxxxxxx
Web:
http://www.aerisingenieria.com.ar

Attachment: diagramwitherror.qet
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/