De-Backer wrote:

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.


In the above code is another bug regarding the color and the section of the conductor:


...
            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);
...

The if statement is missing a curly brace.

De-Backer wrote:

he is probably referring to the "renderCell"

titleblocktemplate.cpp@1312

es that seems to be the right location. I want to achieve 2 texts with different Text sizes and/or different alignments in the same cell.

Hello,

First thanks for this awesome project!

I am trying to build my own title block for a project and was wondering if there is a possibility to configure different cells without a border between them. Right now every cell seems always to be enclosed by a border.