fix generation of ERT labels.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10593 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2005-11-07 12:21:59 +00:00
parent 20417e1859
commit 60a14eaa93
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-07 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insetert.C (setButtonLabel): use isOpen() to test whether the ert
is collapsed.
2005-11-02 Martin Vermeer <martin.vermeer@hut.fi>
* insetbranch.C: partial fix bug 2092: branches not

View File

@ -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")));
}