remove a couple of extronous assignments and a check

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/5/head
Alexander Golubev 6 years ago
parent 42c5515635
commit eb38719a5b

@ -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;

Loading…
Cancel
Save