From 9a8790e682e91121695b4fd2c9a4d0743c56745f Mon Sep 17 00:00:00 2001 From: Akarsh Simha Date: Wed, 14 Jan 2009 09:05:42 +0000 Subject: [PATCH] Applying Kashyap Puranik's patch, fixing issues with the display of isotope half-lives that are in units of years. The year not being an SI unit, is represented as units:y and not siUnits:y. Thanks Kashyap! CCMAIL:cniehaus@gmx.de CCMAIL:ewoerner@kde.org CCMAIL:kashthealien@gmail.com svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=910780 --- libscience/isotopeparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libscience/isotopeparser.cpp b/libscience/isotopeparser.cpp index 9063689..65f1f1e 100644 --- a/libscience/isotopeparser.cpp +++ b/libscience/isotopeparser.cpp @@ -131,7 +131,7 @@ bool IsotopeParser::startElement(const QString&, const QString &localName, const if (attrs.localName(i) == "units") { if ( attrs.value(i) == "siUnits:s" ) { d->currentUnit = ChemicalDataObject::s; - } else if ( attrs.value(i) == "siUnits:y" ) { + } else if ( attrs.value(i) == "units:y" ) { d->currentUnit = ChemicalDataObject::y; } else { d->currentUnit = ChemicalDataObject::noUnit; -- 2.47.3