Skip to content

Commit

Permalink
E-Suite ecCharts : allow a second text "ztext" in a page
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvielamythepaut committed Apr 28, 2023
1 parent 6c549ff commit b3aec30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/attributes/TextVisitorAttributes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ bool TextVisitorAttributes::accept(const string& node)

if ( magCompare(node, "text") )
return true;
if ( magCompare(node, "ztext") )
return true;

return false;
}
Expand All @@ -290,6 +292,8 @@ void TextVisitorAttributes::set(const XmlNode& node)

if ( magCompare(node.name(), "text") )
apply = true;
if ( magCompare(node.name(), "ztext") )
apply = true;


if ( apply )
Expand Down
3 changes: 2 additions & 1 deletion src/params/TextVisitor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
-->
<magics>
<class xmltag="text"
<class
name="TextVisitor"
xml_data="text_lines"
directory="basic"
prefix="text"
xmltag="text/ztext"
xml_doc_inherits="XmlBasicNode"
action="ptext">
<documentation></documentation>
Expand Down

0 comments on commit b3aec30

Please sign in to comment.