summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shortcutcontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/shortcutcontainer.cpp')
-rw-r--r--src/gui/widgets/shortcutcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/shortcutcontainer.cpp b/src/gui/widgets/shortcutcontainer.cpp
index 5ebe67a4f..89b5c1c14 100644
--- a/src/gui/widgets/shortcutcontainer.cpp
+++ b/src/gui/widgets/shortcutcontainer.cpp
@@ -60,7 +60,7 @@ ShortcutContainer::~ShortcutContainer()
void ShortcutContainer::widgetResized(const gcn::Event &event A_UNUSED)
{
- mGridWidth = getWidth() / mBoxWidth;
+ mGridWidth = mDimension.width / mBoxWidth;
if (mGridWidth < 1)
mGridWidth = 1;