diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index c8a4e2028b..d06075e4dc 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,9 @@ +2004-06-01 Angus Leeming + + * LayoutEngine.C (c-tor): initialize visible_ as false. + (set): only invoke hide() if the widget was visible and is to + be no longer. + 2004-05-28 Lars Gullik Bjonnes * forms/Makefile.am (MAINTAINERCLEANFILES): rename as DISTCLEANFILES diff --git a/src/frontends/xforms/LayoutEngine.C b/src/frontends/xforms/LayoutEngine.C index 7a4cd9ade9..00e9a42304 100644 --- a/src/frontends/xforms/LayoutEngine.C +++ b/src/frontends/xforms/LayoutEngine.C @@ -97,7 +97,7 @@ Box::Packing Box::default_packing_ = Box::Shrink; Box::Box(dimension_t min_w, dimension_t min_h) - : visible_(false), + : visible_(true), min_w_(min_w), min_h_(min_h), w_(min_w), @@ -193,7 +193,7 @@ Box::PreferedVisibility Box::preferedVisibility() const void Box::set(PreferedVisibility pv) { prefered_visibility_ = pv; - if (pv == Invisible) + if (pv == Invisible && visible_) hide(); }