diff --git a/src/kooldock.cpp b/src/kooldock.cpp index cad4541..d4c4acc 100644 --- a/src/kooldock.cpp +++ b/src/kooldock.cpp @@ -1327,8 +1327,6 @@ void KoolDock::mksmallTimerstop() } ii_first = 0; ii_last = items.count() - 1; - ii_first = 0; - ii_last = items.count() - 1; adjust = 0; iwBig = iwBig2; if (fHidden == 0) { @@ -1880,8 +1878,6 @@ void KoolDock::doUpdateGeometry() ii_first = 0; ii_last = items.count() - 1; - ii_first = 0; - ii_last = ii_last; if (fExpanded == true) { w = w1; @@ -3757,7 +3753,7 @@ int KoolDock::xFromIndex(int i) else if ((i >= ii_first) && (i <= ii_last)) { Xpos = cur_cx[i] - iSize[i] / 2 + adjust + soffset; } - else if (i > ii_last) { + else { // if (i > ii_last) Xpos = cur_cx[i] - iwSmall / 2 + adjust + SPACE_W - 3 + soffset * 0; } return Xpos;