already visiblehidden respectively.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8735
a592a061-630c-0410-9148-
cb99ea01b6c8
+2004-05-04 Angus Leeming <leeming@lyx.org>
+
+ * XFormsToolbar.C (show, hide): do nothing if the toolbar is
+ already visible/invisible, respectively.
+
2004-05-04 Angus Leeming <leeming@lyx.org>
* XWorkArea.C (XWorkArea): set the color of the background, hidden
void XFormsToolbar::hide(bool update_metrics)
{
- toolbar_->set(Box::Invisible);
+ if (!toolbar_->visible())
+ return;
+
+ toolbar_->set(Box::Invisible);
if (update_metrics)
owner_.updateMetrics();
}
void XFormsToolbar::show(bool update_metrics)
{
- toolbar_->set(Box::Visible);
+ if (toolbar_->visible())
+ return;
+
+ toolbar_->set(Box::Visible);
toolbar_->show();
if (update_metrics)
owner_.updateMetrics();