From 024d181abb16b896e53a5eb2ea094998e39e57a5 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 4 Aug 2002 15:26:00 +0000 Subject: comment --- src/Rootmenu.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Rootmenu.cc b/src/Rootmenu.cc index 66df012..513a971 100644 --- a/src/Rootmenu.cc +++ b/src/Rootmenu.cc @@ -132,9 +132,10 @@ Window Rootmenu::useAutoGroupWindow() auto_group_window = 0; // clear it immediately // If not set check the parent and the parent's parent, ... else { - Rootmenu* parent = dynamic_cast(GetParent()); - if (parent) - w = parent->useAutoGroupWindow(); + // TODO: dynamic_cast throws std::bad_cast! + Rootmenu *p = dynamic_cast(parent()); + if (p) + w = p->useAutoGroupWindow(); } return w; } -- cgit v0.11.2