diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-14 17:31:51 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-14 17:31:51 +0200 |
commit | 5ed8dc57fc056fcab4a8d1a82066c682b0f95c9e (patch) | |
tree | 76f9ebccbe972f65f6cde8bffb83f81a53f6f5e0 /dw | |
parent | 93e96e04a4d46b5d7cff7bfd4397dfa9b05e22bf (diff) |
Fixed abortion.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/oofawarewidget.cc | 8 | ||||
-rw-r--r-- | dw/oofawarewidget.hh | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/dw/oofawarewidget.cc b/dw/oofawarewidget.cc index edecb12f..7d3b9d7b 100644 --- a/dw/oofawarewidget.cc +++ b/dw/oofawarewidget.cc @@ -278,6 +278,14 @@ int OOFAwareWidget::getAvailHeightOfChild (Widget *child, bool forceValue) return Widget::getAvailWidthOfChild (child, forceValue); } +void OOFAwareWidget::removeChild (Widget *child) +{ + // Sub classes should implement this method (and Textblock and + // Table do so), so this point is only reached from + // ~OOFAwareWidget, which removes widgets out of flow. + assert (isWidgetOOF (child)); +} + void OOFAwareWidget::borderChanged (int y, Widget *vloat) { assertNotReached (); diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh index cf43e404..610766ba 100644 --- a/dw/oofawarewidget.hh +++ b/dw/oofawarewidget.hh @@ -174,6 +174,8 @@ protected: int getAvailWidthOfChild (Widget *child, bool forceValue); int getAvailHeightOfChild (Widget *child, bool forceValue); + void removeChild (Widget *child); + public: static int CLASS_ID; |