[TechDraw] Issue #5903 - Autofill template information

This commit is contained in:
pavltom
2024-03-16 10:50:35 +01:00
committed by WandererFan
parent 897e969477
commit aac48eb2f9
13 changed files with 236 additions and 156 deletions

View File

@@ -27,6 +27,7 @@
#include <QDomDocument>
#endif
#include "DrawUtil.h"
#include "XMLQuery.h"
@@ -51,7 +52,7 @@ static bool processElements(const QDomElement& element, const QString& queryStr,
for(int i = 0; i < editable.count(); i++) {
QDomNode node = editable.item(i);
QDomElement element = node.toElement();
if (element.hasAttribute(QString(QLatin1String("freecad:editable")))) {
if (element.hasAttribute(QString(QLatin1String(FREECAD_ATTR_EDITABLE)))) {
if (find_tspan) {
element = element.firstChildElement();
}