From: Carsten Niehaus Date: Sat, 22 Oct 2005 10:37:14 +0000 (+0000) Subject: skip element Xx if found X-Git-Tag: v3.80.2~276 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=d1d5f0b0f8053eb475823b2f999a731c8a9f748c;p=libqmvoc.git skip element Xx if found svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=472983 --- diff --git a/libscience/data/elements.xml b/libscience/data/elements.xml index 6c9484f..a7dbda9 100644 --- a/libscience/data/elements.xml +++ b/libscience/data/elements.xml @@ -22,6 +22,16 @@ + + 0 + Xx + Dummy + 0.0000 + 0.00000 + 0.0 + 0 + 0.07 0.50 0.70 + 1 H diff --git a/libscience/elementparser.cpp b/libscience/elementparser.cpp index aea08b3..d2da7a5 100644 --- a/libscience/elementparser.cpp +++ b/libscience/elementparser.cpp @@ -81,6 +81,7 @@ bool ElementSaxParser::endElement ( const QString & namespaceURI, const QString { if ( localName == "elementType" ) { + if ( currentElement_->dataAsString( ChemicalDataObject::symbol ) != "Xx" ) elements_.append(currentElement_); currentElement_ = 0;