From 46bdf60f5bb86e1f4ef4b6fb0f36e924528ddc2c Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Sat, 31 Dec 2011 20:14:32 +0100 Subject: Fix for Bug #494722 (Docked dialogs in a floating window crashes on shutdown), by John Smith. (bzr r10813) --- src/ui/widget/dock-item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/widget/dock-item.cpp') 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(); -- cgit v1.2.3