[EMAIL PROTECTED] writes:
| Author: schmitt
| Date: Sat Oct 21 12:22:41 2006
| New Revision: 15440
|
| URL: http://www.lyx.org/trac/changeset/15440
| Log:
| change tracking:
|
| * paragraph.h: remove setChar(...); all text changes
| must be expressed as erase and insert operations in
| order to support change tracking
|
| Modified:
| lyx-devel/trunk/src/paragraph.C
| lyx-devel/trunk/src/paragraph.h
| lyx-devel/trunk/src/text.C
|
| Modified: lyx-devel/trunk/src/paragraph.C
| URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/paragraph.C?rev=15440
| ==============================================================================
| --- lyx-devel/trunk/src/paragraph.C (original)
| +++ lyx-devel/trunk/src/paragraph.C Sat Oct 21 12:22:41 2006
| @@ -1502,12 +1502,6 @@
| }
|
|
| -void Paragraph::setChar(pos_type pos, value_type c)
| -{
| - text_[pos] = c;
| -}
And why couldn't CT have been handled here?
| --- lyx-devel/trunk/src/text.C (original)
| +++ lyx-devel/trunk/src/text.C Sat Oct 21 12:22:41 2006
| @@ -1624,10 +1624,11 @@
| break;
| }
| }
| -#ifdef WITH_WARNINGS
| -#warning changes
| -#endif
| - pars_[pit].setChar(pos, c);
| +
| + // FIXME: change tracking (MG)
| + // sorry but we are no longer allowed to set a single character
directly
| + // we have to rewrite this method in terms of erase&insert
operations
| + //pars_[pit].setChar(pos, c);
| ++pos;
| }
so what did you break?
--
Lgb