summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-01 19:20:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-01 22:58:18 +0300
commit2cdc186cf733795f73c30f9c1d437562d6be6eb8 (patch)
tree3cb11ef98a9e56444fa96fee142876c6a58836bb
parent8b27b94feb7edb3ff821a7f4cf4bcb97dd9f1082 (diff)
downloadmanaverse-2cdc186cf733795f73c30f9c1d437562d6be6eb8.tar.gz
manaverse-2cdc186cf733795f73c30f9c1d437562d6be6eb8.tar.bz2
manaverse-2cdc186cf733795f73c30f9c1d437562d6be6eb8.tar.xz
manaverse-2cdc186cf733795f73c30f9c1d437562d6be6eb8.zip
Fix previous commits.
-rw-r--r--src/gui/widgets/progressbar.cpp1
-rw-r--r--src/gui/widgets/tab.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp
index babf3f0e2..f97572904 100644
--- a/src/gui/widgets/progressbar.cpp
+++ b/src/gui/widgets/progressbar.cpp
@@ -190,6 +190,7 @@ void ProgressBar::render(Graphics *graphics)
if (mRedraw || graphics->getRedraw())
{
mRedraw = false;
+ mVertexes->clear();
graphics->calcWindow(mVertexes, 0, 0,
mDimension.width, mDimension.height, mSkin->getBorder());
}
diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp
index fdcace308..a0ebc7732 100644
--- a/src/gui/widgets/tab.cpp
+++ b/src/gui/widgets/tab.cpp
@@ -201,6 +201,7 @@ void Tab::draw(gcn::Graphics *graphics)
{
mMode = mode;
mRedraw = false;
+ mVertexes->clear();
static_cast<Graphics*>(graphics)->calcWindow(mVertexes, 0, 0,
getWidth(), getHeight(), rect);
}