[Kst] branches/work/kst/1.5/kst/src/libkstmath

Andrew Walker arwalker at sumusltd.com
Thu Apr 12 20:15:34 CEST 2007


SVN commit 653149 by arwalker:

style

 M  +2 -4      kstcolorsequence.cpp  


--- branches/work/kst/1.5/kst/src/libkstmath/kstcolorsequence.cpp #653148:653149
@@ -78,8 +78,6 @@
 QColor KstColorSequence::next(const KstVCurveList& curves, const QColor& badColor) {
   QColor color;
   int dark_factor;
-  int ptrMin;
-  int start;
 
   if (!_self) {
     _self = sdColorSequence.setObject(_self, new KstColorSequence);
@@ -98,7 +96,7 @@
   if (_self->_ptr >= _self->_count * 2) {
     _self->_ptr = 0;
   }
-  start = _self->_ptr;
+  int start = _self->_ptr;
 
   do {
     dark_factor = 100 + ( 50 * ( _self->_ptr / _self->_count ) );
@@ -129,7 +127,7 @@
   // if we are already using this color then use the least used color for all the curves.
   if (usage[_self->_ptr] != 0) {
     _self->_ptr = start;
-    ptrMin = _self->_ptr;
+    int ptrMin = _self->_ptr;
 
     do {
       if (usage[_self->_ptr] < usage[ptrMin]) {


More information about the Kst mailing list