diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2019-03-01 14:42:06 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2019-03-02 18:43:03 +0300 |
commit | eb38719a5b57fc2cfc384a007d42add603c141c1 (patch) | |
tree | 38bd283685558b1385d456a8998e34b84930719f | |
parent | 42c5515635347a2ed6a34aed108d8449d942b202 (diff) | |
download | kooldock-eb38719a5b57fc2cfc384a007d42add603c141c1.tar.gz kooldock-eb38719a5b57fc2cfc384a007d42add603c141c1.zip |
remove a couple of extronous assignments and a check
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r-- | src/kooldock.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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; |