aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index 8ebc2767..e7ac7f55 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -252,7 +252,7 @@ protected:
{ layout->changeAnchor (this, name, y); }
inline void removeAnchor (char* name)
- { layout->removeAnchor (this, name); }
+ { if (layout) layout->removeAnchor (this, name); }
//inline void updateBgColor () { layout->updateBgColor (); }