From: Jürgen Spitzmüller Date: Thu, 9 Jul 2009 11:45:19 +0000 (+0000) Subject: * InsetBranch.cpp: X-Git-Tag: 2.0.0~6127 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7d1b297e7e0fd3bcfd306fa367218a95409a3fa5;p=features.git * 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 --- diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index e6b3122442..b3c1d85acb 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -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));