[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/gnome-chemistry-utils/FC-6 19808.patch,NONE,1.1



Author: belegdol

Update of /cvs/extras/rpms/gnome-chemistry-utils/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16480

Added Files:
	19808.patch 
Log Message:
* Mon May  7 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.6.5-2
- Fixed gchemtable crash (RH #239056, Savannah #19808)


19808.patch:

--- NEW FILE 19808.patch ---
Index: programs/gchemtable-elt.cc
===================================================================
RCS file: /cvsroot/gchemutils/gchemutils/programs/Attic/gchemtable-elt.cc,v
retrieving revision 1.7.2.4
diff -p -u -5 -r1.7.2.4 gchemtable-elt.cc
--- programs/gchemtable-elt.cc	7 Apr 2007 15:06:01 -0000	1.7.2.4
+++ programs/gchemtable-elt.cc	7 May 2007 16:54:15 -0000
@@ -243,13 +243,13 @@ GChemTableElt::GChemTableElt (GChemTable
 	int maxspin = 0;
 	if (radii) while (*radii) {
 		if (((*radii)->type == GCU_IONIC) && !strcmp ((*radii)->scale, "Shannon")) {
 			j = radii_list.begin ();
 			jend = radii_list.end ();
-			while (((j != jend) && ((*j)->charge < (*radii)->charge)) || 
-				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn)) ||
-				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))
+			while ((j != jend) && (((*j)->charge < (*radii)->charge) || 
+				(((*j)->charge == (*radii)->charge) && ((*j)->cn < (*radii)->cn) ||
+				(((*j)->cn == (*radii)->cn) && ((*j)->spin < (*radii)->spin)))))
 				j++;
 			radii_list.insert (j, *radii);
 			if ((*radii)->spin > maxspin)
 				maxspin = (*radii)->spin;
 		}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]