summaryrefslogtreecommitdiff
path: root/src/gui/windows/shortcutwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/shortcutwindow.cpp')
-rw-r--r--src/gui/windows/shortcutwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/shortcutwindow.cpp b/src/gui/windows/shortcutwindow.cpp
index e45ca266c..faa8e6fa5 100644
--- a/src/gui/windows/shortcutwindow.cpp
+++ b/src/gui/windows/shortcutwindow.cpp
@@ -78,9 +78,9 @@ ShortcutWindow::ShortcutWindow(const std::string &restrict title,
setMinWidth(32);
setMinHeight(32);
- const int border = SCROLL_PADDING * 2 + getPadding() * 2;
if (mItems != nullptr)
{
+ const int border = SCROLL_PADDING * 2 + getPadding() * 2;
const int bw = mItems->getBoxWidth();
const int bh = mItems->getBoxHeight();
const int maxItems = mItems->getMaxItems();