]> Git trees. - libqmvoc.git/commitdiff
fix the isotope-table
authorCarsten Niehaus <cniehaus@gmx.de>
Mon, 13 Jun 2005 10:47:55 +0000 (10:47 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Mon, 13 Jun 2005 10:47:55 +0000 (10:47 +0000)
svn path=/trunk/KDE/kdeedu/kalzium/src/element.cpp; revision=424854

kalzium/src/element.cpp

index c359a1f5639ef0fbe9f371dc0abfc15404bc8667..a5cac175cad136008f964182e75322ad0c222c70 100644 (file)
@@ -662,7 +662,7 @@ EList KalziumDataObject::readData(  QDomDocument &dataDocument )
                QValueList<Isotope*> 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();