* src/tkTableTag.c (Table_TagCmd): Don't decrement past
beginning of array.
2002-06-07 Martin M. Hunt <hunt@redhat.com>
+ * src/tkTableTag.c (Table_TagCmd): Don't decrement past
+ beginning of array.
+
* library/combobox.tcl (::combobox::configure): Don't
force background to white.
/*
* Move tag up in priority.
*/
- for (i = tagPrio; i > value; i--) {
+ for (i = tagPrio; i && i > value; i--) {
tablePtr->tagPrioNames[i] = tablePtr->tagPrioNames[i-1];
tablePtr->tagPrios[i] = tablePtr->tagPrios[i-1];
}