On Sun, Jan 01, 2006 at 02:00:58PM +0100, Michael Gerz wrote: > Michael Gerz wrote:
... > More investigation on paragraph breaks: > > Does not work: Pressing Enter in the middle of an unchanged line > Works: Selecting & copying paragraph break, pasting it in the middle > of an unchanged line > Works: Pressing Enter at the beginning and end of an unchanged line > > => Why do the latter work but not the first approach? > > Michael The code is here (text.C): 1026 void LyXText::breakParagraph(LCursor & cur, bool keep_layout) 1027 { 1028 BOOST_ASSERT(this == cur.text()); 1029 // allow only if at start or end, or all previous is new text 1030 Paragraph & cpar = cur.paragraph(); 1031 pit_type cpit = cur.pit(); 1032 1033 if (cur.pos() != 0 && cur.pos() != cur.lastpos() 1034 && cpar.isChangeEdited(0, cur.pos())) 1035 return; Nothing about the 'why' though... - Martin
pgpDKiNntrxqU.pgp
Description: PGP signature