Commit ab075ff5 authored by David Faure's avatar David Faure

As recommended by Thiago, to fix

 forEachElement(el, node) if (el.isTextNode()) { ... } else { ... }

svn path=/trunk/koffice/; revision=680337
parent 5fcd2d0d
......@@ -413,7 +413,7 @@ namespace KoXml {
#define forEachElement( elem, parent ) \
for ( KoXmlNode _node = parent.firstChild(); !_node.isNull(); _node = _node.nextSibling() ) \
if ( !( elem = _node.toElement() ).isNull() )
if ( ( elem = _node.toElement() ).isNull() ) {} else
#endif // KOFFICE_XMLREADER
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment