From: Carsten Niehaus Date: Mon, 13 Jun 2005 10:47:55 +0000 (+0000) Subject: fix the isotope-table X-Git-Tag: v3.80.2~300^2~108 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=2b7ce01540329002b043893e872b0650e86c1f62;p=libqmvoc.git fix the isotope-table svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=424854 --- diff --git a/kalzium/src/element.cpp b/kalzium/src/element.cpp index c359a1f..a5cac17 100644 --- a/kalzium/src/element.cpp +++ b/kalzium/src/element.cpp @@ -662,7 +662,7 @@ EList KalziumDataObject::readData( QDomDocument &dataDocument ) QValueList isolist; for( uint i = 0; i < isotopelist.length(); i++ ) { - QDomElement iso = elist.item( i ).toElement(); + QDomElement iso = isotopelist.item( i ).toElement(); double halflife = iso.attributeNode( "halflife" ).value().toDouble(); double weight = iso.attributeNode( "weight" ).value().toDouble(); QString format = iso.attributeNode( "halflifeformat" ).value(); @@ -671,6 +671,7 @@ EList KalziumDataObject::readData( QDomDocument &dataDocument ) Isotope *isotope = new Isotope( neutrons, percentage, weight, halflife, format ); isolist.append( isotope ); + kdDebug() << "Neutrons: " << neutrons << " :: " << percentage << weight << halflife << format << endl; } Element *e = new Element();