mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 19:59:46 +00:00
In mathed, require xcolor instead of color when appropriate
Fixes bug #10417.
This commit is contained in:
parent
14745174ec
commit
f8d3a8860b
@ -74,8 +74,26 @@ static bool normalcolor(docstring const & color)
|
||||
void InsetMathColor::validate(LaTeXFeatures & features) const
|
||||
{
|
||||
InsetMathNest::validate(features);
|
||||
if (!normalcolor(color_))
|
||||
features.require("color");
|
||||
if (!normalcolor(color_)) {
|
||||
switch (lcolor.getFromLaTeXName(to_utf8(color_))) {
|
||||
case Color_brown:
|
||||
case Color_darkgray:
|
||||
case Color_gray:
|
||||
case Color_lightgray:
|
||||
case Color_lime:
|
||||
case Color_olive:
|
||||
case Color_orange:
|
||||
case Color_pink:
|
||||
case Color_purple:
|
||||
case Color_teal:
|
||||
case Color_violet:
|
||||
features.require("xcolor");
|
||||
break;
|
||||
default:
|
||||
features.require("color");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -97,6 +97,8 @@ What's new
|
||||
|
||||
- Fix display of Arabic text when compiling with Qt5 (bug 10436).
|
||||
|
||||
- Allow using colors supported by xcolor inside mathed (bug 10417).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user