From 60a14eaa93ca3d20aef7db879e3d3b772283bb13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 7 Nov 2005 12:21:59 +0000 Subject: [PATCH] fix generation of ERT labels. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10593 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetert.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 3c12c4ede2..5150c6634f 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2005-11-07 Jürgen Spitzmüller + + * insetert.C (setButtonLabel): use isOpen() to test whether the ert + is collapsed. + 2005-11-02 Martin Vermeer * insetbranch.C: partial fix bug 2092: branches not diff --git a/src/insets/insetert.C b/src/insets/insetert.C index 0dca4e4fcc..34b2b9fa7b 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -365,7 +365,7 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd, void InsetERT::setButtonLabel() { - setLabel(status() == Collapsed ? getNewLabel(_("ERT")) : _("ERT")); + setLabel(isOpen() ? _("ERT") : getNewLabel(_("ERT"))); }