aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-14 23:23:56 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-14 23:23:56 (GMT)
commit52f614b59853e425f34790f1795d66f93781f95b (patch)
tree24f13391ec99044b7bb907c77f0087960b992e2b /src
parent2b62cf973318978bc222db7719552148275887db (diff)
downloadfluxbox_paul-52f614b59853e425f34790f1795d66f93781f95b.zip
fluxbox_paul-52f614b59853e425f34790f1795d66f93781f95b.tar.bz2
bugfix: 'reset' nr_shapes to '0' after last instance of 'Shape'
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Shape.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Shape.cc b/src/FbTk/Shape.cc
index 41c7885..32745af 100644
--- a/src/FbTk/Shape.cc
+++ b/src/FbTk/Shape.cc
@@ -151,7 +151,9 @@ void cleanCorners() {
151 151
152 if (nr_shapes == 1) { 152 if (nr_shapes == 1) {
153 s_corners.clear(); 153 s_corners.clear();
154 } else { 154 }
155
156 if (nr_shapes > 0) {
155 nr_shapes--; // refcounting 157 nr_shapes--; // refcounting
156 } 158 }
157} 159}