mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
isAvailable is static
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28702 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fd051070a1
commit
7bd971ff32
@ -1900,7 +1900,7 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
|
||||
}
|
||||
if (package == Encoding::CJK || features.mustProvide("CJK")) {
|
||||
if (language->encoding()->name() == "utf8-cjk"
|
||||
&& features.isAvailable("CJKutf8"))
|
||||
&& LaTeXFeatures::isAvailable("CJKutf8"))
|
||||
os << "\\usepackage{CJKutf8}\n";
|
||||
else
|
||||
os << "\\usepackage{CJK}\n";
|
||||
@ -1921,7 +1921,7 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
|
||||
break;
|
||||
case Encoding::CJK:
|
||||
if (encoding().name() == "utf8-cjk"
|
||||
&& features.isAvailable("CJKutf8"))
|
||||
&& LaTeXFeatures::isAvailable("CJKutf8"))
|
||||
os << "\\usepackage{CJKutf8}\n";
|
||||
else
|
||||
os << "\\usepackage{CJK}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user