From 2b7ce01540329002b043893e872b0650e86c1f62 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Mon, 13 Jun 2005 10:47:55 +0000 Subject: [PATCH] fix the isotope-table svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=424854 --- kalzium/src/element.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.47.3