Fix problem with toolbars always visible at startup.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8789 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-06-01 11:10:09 +00:00
parent 0eeec0cf18
commit c8600dc0a1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2004-06-01 Angus Leeming <leeming@lyx.org>
* 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 <larsbj@gullik.net> 2004-05-28 Lars Gullik Bjonnes <larsbj@gullik.net>
* forms/Makefile.am (MAINTAINERCLEANFILES): rename as DISTCLEANFILES * forms/Makefile.am (MAINTAINERCLEANFILES): rename as DISTCLEANFILES

View File

@ -97,7 +97,7 @@ Box::Packing Box::default_packing_ = Box::Shrink;
Box::Box(dimension_t min_w, dimension_t min_h) Box::Box(dimension_t min_w, dimension_t min_h)
: visible_(false), : visible_(true),
min_w_(min_w), min_w_(min_w),
min_h_(min_h), min_h_(min_h),
w_(min_w), w_(min_w),
@ -193,7 +193,7 @@ Box::PreferedVisibility Box::preferedVisibility() const
void Box::set(PreferedVisibility pv) void Box::set(PreferedVisibility pv)
{ {
prefered_visibility_ = pv; prefered_visibility_ = pv;
if (pv == Invisible) if (pv == Invisible && visible_)
hide(); hide();
} }