On Mon, Oct 28, 2002 at 05:10:18PM +0000, John Levon wrote:
> breakParagraph() looks suspicious to me. First, why don't we allow
> blank lines to be created immediately in ert etc. ? And in fact, where
> in the code stops it happening ??
> 
> Also:
> 
>         bool const isempty = (par->layout()->keepempty && par->empty());
>  
>         if (!isempty && (par->size() > pos || par->empty() || flag == 2)) {
> 
>       ....
> 
>                 pos_type pos_end = par->size() - 1;
> 
> Whoops ! If !keepempty and par->empty(), this makes pos_end as -1, does

This makes pos_end = size() - 1 which ist >= 0  as par is !empty.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to