Use cheaper conversion method.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34095 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-04-08 20:22:20 +00:00
parent e8529a2ecf
commit c0e12a0b8f

View File

@ -673,10 +673,10 @@ int Buffer::readHeader(Lexer & lex)
params().isfontcolor = false; params().isfontcolor = false;
params().notefontcolor = lyx::rgbFromHexName("#cccccc"); params().notefontcolor = lyx::rgbFromHexName("#cccccc");
lyx::dispatch(FuncRequest(LFUN_SET_COLOR, lyx::dispatch(FuncRequest(LFUN_SET_COLOR,
from_utf8("greyedouttext #cccccc"))); from_ascii("greyedouttext #cccccc")));
params().boxbgcolor = lyx::rgbFromHexName("#ff0000"); params().boxbgcolor = lyx::rgbFromHexName("#ff0000");
lyx::dispatch(FuncRequest(LFUN_SET_COLOR, lyx::dispatch(FuncRequest(LFUN_SET_COLOR,
from_utf8("shaded #ff0000"))); from_ascii("shaded #ff0000")));
for (int i = 0; i < 4; ++i) { for (int i = 0; i < 4; ++i) {
params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i]; params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];