summaryrefslogtreecommitdiff
path: root/src/gui/widgets/shortcutcontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-14 20:49:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-14 20:49:11 +0300
commit7892f5516650d99ab8a01fdc5c538306e2a6836f (patch)
tree33e9cb73a96a70784d6068d614312ffb21d8ea12 /src/gui/widgets/shortcutcontainer.cpp
parent3078fd67b62f4dd7de5cb6e944709e5b51c3c8fb (diff)
downloadmv-7892f5516650d99ab8a01fdc5c538306e2a6836f.tar.gz
mv-7892f5516650d99ab8a01fdc5c538306e2a6836f.tar.bz2
mv-7892f5516650d99ab8a01fdc5c538306e2a6836f.tar.xz
mv-7892f5516650d99ab8a01fdc5c538306e2a6836f.zip
improve shortcutcontainer.
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;