summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/checkbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan/widgets/checkbox.cpp')
-rw-r--r--src/guichan/widgets/checkbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guichan/widgets/checkbox.cpp b/src/guichan/widgets/checkbox.cpp
index 413f8e6af..fe0bfbee4 100644
--- a/src/guichan/widgets/checkbox.cpp
+++ b/src/guichan/widgets/checkbox.cpp
@@ -118,7 +118,7 @@ namespace gcn
void CheckBox::adjustSize()
{
- int height = getFont()->getHeight();
+ const int height = getFont()->getHeight();
setHeight(height);
setWidth(getFont()->getWidth(mCaption) + height + height / 2);