mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +00:00
* 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:
parent
4b55ed8202
commit
7d1b297e7e
@ -90,8 +90,11 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const
|
|||||||
docstring s = _("Branch: ") + params_.branch;
|
docstring s = _("Branch: ") + params_.branch;
|
||||||
Buffer const & realbuffer = *buffer().masterBuffer();
|
Buffer const & realbuffer = *buffer().masterBuffer();
|
||||||
BranchList const & branchlist = realbuffer.params().branchlist();
|
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;
|
s = _("Branch (child only): ") + params_.branch;
|
||||||
|
else if (!branchlist.find(params_.branch))
|
||||||
|
s = _("Branch (undefined): ") + params_.branch;
|
||||||
if (!params_.branch.empty()) {
|
if (!params_.branch.empty()) {
|
||||||
// FIXME UNICODE
|
// FIXME UNICODE
|
||||||
ColorCode c = lcolor.getFromLyXName(to_utf8(params_.branch));
|
ColorCode c = lcolor.getFromLyXName(to_utf8(params_.branch));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user