+2005-11-02 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * insetbranch.C: partial fix bug 2092: branches not
+ propagated to child docs
+ * insetcharstyle.C: Also replace LColor::red by LColor::error
+
2005-10-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* insetbranch.C (isBranchSelected): take a buffer as argument.
font.decSize();
string s = _("Branch: ") + params_.branch;
- setLabel(isOpen() ? s : getNewLabel(s) );
font.setColor(LColor::foreground);
- if (!params_.branch.empty())
- setBackgroundColor(lcolor.getFromLyXName(params_.branch));
- else
+ if (!params_.branch.empty()) {
+ LColor_color c = lcolor.getFromLyXName(params_.branch);
+ if (c == LColor::none) {
+ c = LColor::error;
+ s = _("Undef: ") + s;
+ }
+ setBackgroundColor(c);
+ } else
setBackgroundColor(LColor::background);
+ setLabel(isOpen() ? s : getNewLabel(s) );
setLabelFont(font);
}
params_.latexparam.clear();
params_.font = LyXFont(LyXFont::ALL_INHERIT);
params_.labelfont = LyXFont(LyXFont::ALL_INHERIT);
- params_.labelfont.setColor(LColor::red);
+ params_.labelfont.setColor(LColor::error);
}