mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
6185018f6d
commit
167bc777c2
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user