From 52f614b59853e425f34790f1795d66f93781f95b Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Wed, 15 Sep 2010 01:23:56 +0200 Subject: bugfix: 'reset' nr_shapes to '0' after last instance of 'Shape' --- src/FbTk/Shape.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { if (nr_shapes == 1) { s_corners.clear(); - } else { + } + + if (nr_shapes > 0) { nr_shapes--; // refcounting } } -- cgit v0.11.2