From d1d5f0b0f8053eb475823b2f999a731c8a9f748c Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Sat, 22 Oct 2005 10:37:14 +0000 Subject: [PATCH] skip element Xx if found svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=472983 --- libscience/data/elements.xml | 10 ++++++++++ libscience/elementparser.cpp | 1 + 2 files changed, 11 insertions(+) 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; -- 2.47.3