fout bij "dynamicelementtextitem.cpp"
@ 1183
label = elmt->actualLabel();
from:
QString DynamicElementTextItem::reportReplacedCompositeText() const
{
QString string;
if(m_parent_element.data()->linkType() & Element::AllReport)
{
string = m_composite_text;
if (string.contains("%{label}") && m_other_report)
{
Element *elmt = m_other_report.data();
QString label = m_report_formula;
label = elmt->actualLabel(); // <======= set to NULL!!!!!
string.replace("%{label}", label);
qDebug()<<string<<label<<elmt->actualLabel(); // test van De-Backer
}
if (m_watched_conductor)
{
if(string.contains("%{function}"))
string.replace("%{function}", m_watched_conductor.data()->properties().m_function);
if(string.contains("%{tension-protocol}"))
string.replace("%{tension-protocol}", m_watched_conductor.data()->properties().m_tension_protocol);
if(string.contains("%{couleur-conducteur"))
string.replace("%{couleur-conducteur}", m_watched_conductor.data()->properties().m_wire_color);
if(string.contains("%{section-conducteur"))
string.replace("%{section-conducteur}", m_watched_conductor.data()->properties().m_wire_section);
}
}
return string;
}
Seeking further....
the origin of the bug is id fc73d53d73bc341e853e7f36e797bd8b9ad47b46
test: it works for that, but not after that
Joshua can certainly find the bug faster. Than me.