summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock-item.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-12-31 19:14:32 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-12-31 19:14:32 +0000
commit46bdf60f5bb86e1f4ef4b6fb0f36e924528ddc2c (patch)
tree625502ee3184aca32bb51b15dd836ea8a0c3f20d /src/ui/widget/dock-item.cpp
parentadd NULL pointer checks (diff)
downloadinkscape-46bdf60f5bb86e1f4ef4b6fb0f36e924528ddc2c.tar.gz
inkscape-46bdf60f5bb86e1f4ef4b6fb0f36e924528ddc2c.zip
Fix for Bug #494722 (Docked dialogs in a floating window crashes on shutdown), by John Smith.
(bzr r10813)
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();