* InsetBranch.cpp:

- fix display of "child only" suffix, and "undefined" suffix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30423 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-07-09 11:45:19 +00:00
parent 4b55ed8202
commit 7d1b297e7e

View File

@ -90,8 +90,11 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const
docstring s = _("Branch: ") + params_.branch;
Buffer const & realbuffer = *buffer().masterBuffer();
BranchList const & branchlist = realbuffer.params().branchlist();
if (!branchlist.find(params_.branch))
if (!branchlist.find(params_.branch)
&& buffer().params().branchlist().find(params_.branch))
s = _("Branch (child only): ") + params_.branch;
else if (!branchlist.find(params_.branch))
s = _("Branch (undefined): ") + params_.branch;
if (!params_.branch.empty()) {
// FIXME UNICODE
ColorCode c = lcolor.getFromLyXName(to_utf8(params_.branch));