aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui.cc b/src/ui.cc
index f807921f..44b4f823 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -168,11 +168,11 @@ int CustHighlightButton::handle(int e)
* Used to resize the progress boxes automatically.
*/
class CustProgressBox : public InvisibleBox {
+ int padding;
public:
CustProgressBox(int x, int y, int w, int h, const char *l=0) :
- InvisibleBox(x,y,w,h,l) {};
+ InvisibleBox(x,y,w,h,l) { padding = 0; };
void update_label(const char *lbl) {
- static int padding = 0;
int w,h;
if (!padding) {
copy_label("W");