X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetnote.C;h=da3c39bfd6449a9f938261ad331b4db4b86358aa;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=f07462f0f35da9313a80e60c908b04bddc07f860;hpb=3f1021344b067ebf2b5a048d0bd03d3d4d9cd2dc;p=lyx.git diff --git a/src/insets/insetnote.C b/src/insets/insetnote.C index f07462f0f3..da3c39bfd6 100644 --- a/src/insets/insetnote.C +++ b/src/insets/insetnote.C @@ -28,13 +28,14 @@ using std::ostream; + void InsetNote::init() { LyXFont font(LyXFont::ALL_SANE); font.decSize(); font.setColor(LColor::note); setLabelFont(font); - setBackgroundColor(LColor::note); + setBackgroundColor(LColor::notebg); setLabel(_("note")); setInsetName("Note"); } @@ -68,7 +69,6 @@ InsetNote::InsetNote(Buffer const * buf, string const & contents, init(); Paragraph * par = inset.paragraph(); - Paragraph::pos_type pos = 0; LyXFont font(LyXFont::ALL_INHERIT, buf->params.language); // Since XForms doesn't support RTL, we can assume that old notes @@ -76,6 +76,7 @@ InsetNote::InsetNote(Buffer const * buf, string const & contents, if (font.language()->RightToLeft()) font.setLanguage(default_language); + lyx::pos_type pos = 0; buf->insertStringAsLines(par, pos, font, strip(contents, '\n')); }