aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-14 17:31:51 +0200
committerSebastian Geerken <devnull@localhost>2014-09-14 17:31:51 +0200
commit5ed8dc57fc056fcab4a8d1a82066c682b0f95c9e (patch)
tree76f9ebccbe972f65f6cde8bffb83f81a53f6f5e0
parent93e96e04a4d46b5d7cff7bfd4397dfa9b05e22bf (diff)
Fixed abortion.
-rw-r--r--dw/oofawarewidget.cc8
-rw-r--r--dw/oofawarewidget.hh2
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;