Hey Scorpio,
Sorry for the long delay, I must have missed the notification that you had responded and I got super tied up at work with a different project.
I am excited now that it seems like I am exploring obscure ways of working hahaha. I guess being kind of a hobbyist and not really knowing all the standards helps
About the bug, I am not the best coder to be honest, I understand the logic, but not great at interpreting the syntax. That being said, I think there might be something regarding the "context" in this function:
void ConductorAutoNumerotation::numerateNewConductor()
{
if (!m_conductor) {
return;
}
if (!m_diagram->conductorsAutonumName().isEmpty())
{
NumerotationContext context = m_diagram->project()->conductorAutoNum(
m_diagram -> conductorsAutonumName());
if (context.isEmpty())
return;
QString autoNum_name = m_diagram->project()->conductorCurrentAutoNum();
QString formula = autonum::numerotationContextToFormula(context);
ConductorProperties cp = m_conductor -> properties();
cp.m_formula = formula;
m_conductor->setProperties(cp);
autonum::setSequential(formula,
m_conductor->rSequenceNum(),
context,
m_diagram,
autoNum_name);
NumerotationContextCommands ncc (context, m_diagram);
m_diagram->project()->addConductorAutoNum(autoNum_name, ncc.next());
}
applyText(autonum::AssignVariables::formulaToLabel(
m_conductor->properties().m_formula,
m_conductor->rSequenceNum(),
m_diagram));
}
The only idea that I have is that I would assume that the context should refer to the folio, and in that context there should be a property for the current count. It might be that they end up referencing a "temporary" context, not one that persists with the folio??