Fix insertion of protected blanks in InsertStringA.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@605 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-03-14 13:41:40 +00:00
parent 6185018f6d
commit 167bc777c2
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-03-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/text2.C (InsertStringA): don't forget to insert a META_INSET
character when inserting an inset.
2000-03-12 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/bufferparams.C (readLanguage): now takes "default" into

View File

@ -298,7 +298,6 @@ bool Buffer::parseSingleLyXformat2Token(LyXLex & lex, LyXParagraph *& par,
inset = new InsetLatexAccent;
inset->Read(lex);
par->InsertChar(pos, LyXParagraph::META_INSET);
par->InsertInset(pos, inset);
par->SetFont(pos, font);
++pos;

View File

@ -2677,6 +2677,7 @@ void LyXText::InsertStringA(char const * s)
#if 1
InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::PROTECTED_SEPARATOR);
par->InsertChar(pos, LyXParagraph::META_INSET);
par->InsertInset(pos, new_inset);
#else
par->InsertChar(pos, LyXParagraph::META_PROTECTED_SEPARATOR);
@ -2687,6 +2688,7 @@ void LyXText::InsertStringA(char const * s)
#if 1
InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::PROTECTED_SEPARATOR);
par->InsertChar(pos, LyXParagraph::META_INSET);
par->InsertInset(pos, new_inset);
#else
par->InsertChar(a, LyXParagraph::META_PROTECTED_SEPARATOR);
@ -2727,6 +2729,7 @@ void LyXText::InsertStringA(char const * s)
#if 1
InsetSpecialChar * new_inset =
new InsetSpecialChar(InsetSpecialChar::PROTECTED_SEPARATOR);
par->InsertChar(pos, LyXParagraph::META_INSET);
par->InsertInset(pos, new_inset);
#else
par->InsertChar(pos, LyXParagraph::META_PROTECTED_SEPARATOR);