summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock-item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget/dock-item.cpp')
-rw-r--r--src/ui/widget/dock-item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/dock-item.cpp b/src/ui/widget/dock-item.cpp
index 14b219110..e5001ccde 100644
--- a/src/ui/widget/dock-item.cpp
+++ b/src/ui/widget/dock-item.cpp
@@ -119,8 +119,8 @@ DockItem::get_position(int& x, int& y)
void
DockItem::get_size(int& width, int& height)
{
- if (_window) {
- _window->get_size(width, height);
+ if (getWindow()) {
+ getWindow()->get_size(width, height);
} else {
width = get_vbox()->get_width();
height = get_vbox()->get_height();