]> git.lyx.org Git - features.git/commitdiff
* InsetBranch.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Thu, 9 Jul 2009 11:45:19 +0000 (11:45 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Thu, 9 Jul 2009 11:45:19 +0000 (11:45 +0000)
- 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

src/insets/InsetBranch.cpp

index e6b3122442d7a7d60379cffdbe867a7762efe14b..b3c1d85acbca364a2e863f9e0941c21ce4ddde25 100644 (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));