]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbranch.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / insetbranch.C
index 9671ef86b5beda8258db0533ff39bf46a9ee9d50..21d77944c04a70afb9d52706dc37599d7379b633 100644 (file)
@@ -97,11 +97,11 @@ void InsetBranch::setButtonLabel()
        font.decSize();
        font.decSize();
 
-       // FIXME UNICODE
-       docstring s = _("Branch: ") + from_utf8(params_.branch);
+       docstring s = _("Branch: ") + params_.branch;
        font.setColor(LColor::foreground);
        if (!params_.branch.empty()) {
-               LColor_color c = lcolor.getFromLyXName(params_.branch);
+               // FIXME UNICODE
+               LColor_color c = lcolor.getFromLyXName(to_utf8(params_.branch));
                if (c == LColor::none) {
                        c = LColor::error;
                        s = _("Undef: ") + s;
@@ -303,7 +303,7 @@ void InsetBranchMailer::string2params(string const & in,
 
 void InsetBranchParams::write(ostream & os) const
 {
-       os << "Branch " << branch << '\n';
+       os << "Branch " << to_utf8(branch) << '\n';
 }