Update comment

Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com>
This commit is contained in:
Ervin Hegedus 2025-04-27 20:25:20 +02:00 committed by GitHub
parent 159f6120aa
commit 2000f4c048
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ class MSCSAXHandler {
}
}
if (xml_data->currpath.length() > 0) {
// set an offset to store this is the first item or not -> remove the '.' or not
// set an offset to store whether this is the first item, in order to know whether to remove the '.'
int offset = (xml_data->nodes.size() > 1) ? 1 : 0;
xml_data->currpath.erase(xml_data->currpath.length() - (name.length()+offset));
}