[EMAIL PROTECTED] writes:

| Author: schmitt
| Date: Thu Jan 25 23:51:00 2007
| New Revision: 16860
| 
| URL: http://www.lyx.org/trac/changeset/16860
| Log:
|       * src/text2.C: deleteEmptyParagraphMechanism(): fix a crash in
|       LyXText::acceptOrRejectChanges() caused by too aggressive deletion
|       
| 
| Modified:
|     lyx-devel/trunk/src/text2.C
| 
| Modified: lyx-devel/trunk/src/text2.C
| URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/text2.C?rev=16860
| ==============================================================================
| --- lyx-devel/trunk/src/text2.C (original)
| +++ lyx-devel/trunk/src/text2.C Thu Jan 25 23:51:00 2007
| @@ -1264,8 +1264,9 @@
|                       }
|               }
|  
| -             // don't delete anything if this is the ONLY paragraph
| -             if (pars_.size() == 1)
| +             // don't delete anything if this is the only remaining 
paragraph within the given range
| +             // note: LyXText::acceptOrRejectChanges() sets the cursor to 
'first' after calling DEPM 
| +             if (first == last)
|                       continue;

Please break lines at ~75 chars.

-- 
        Lgb

Reply via email to