]> git.lyx.org Git - features.git/commitdiff
Fix problem with toolbars always visible at startup.
authorAngus Leeming <leeming@lyx.org>
Tue, 1 Jun 2004 11:10:09 +0000 (11:10 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 1 Jun 2004 11:10:09 +0000 (11:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8789 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/LayoutEngine.C

index c8a4e2028b95b628de85ae3b1518990c730ae1ac..d06075e4dccffcae38b7b7d6e970567c786c0295 100644 (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>
 
        * forms/Makefile.am (MAINTAINERCLEANFILES): rename as DISTCLEANFILES
index 7a4cd9ade9e6bf53ba9666f5706ec7be99e60c0b..00e9a423041dbd0175d5c5a18d7315e0f1590f83 100644 (file)
@@ -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();
 }