Peter Kümmel wrote:
> Here a fix for a Status.15x bug:
> 
> EDITING
> * Open "de_Intro.lyx"; mark first word ("Einführung"); invoke "ert-insert" => 
> seg fault
> 
> But the patch only fixes the "symptom", out-of-bound access on a array.
> Maybe someone who understands this paragraph stuff knows a better solution.
> 
> Peter
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: src/text.C
> ===================================================================
> --- src/text.C        (revision 16431)
> +++ src/text.C        (working copy)
> @@ -134,7 +134,7 @@
>  
>  int numberOfHfills(Paragraph const & par, Row const & row)
>  {
> -     pos_type const last = row.endpos();
> +     pos_type last = row.endpos();
>       pos_type first = row.pos();
>  
>       // hfill *DO* count at the beginning of paragraphs!
> @@ -144,6 +144,7 @@
>       }
>  
>       first = max(first, par.beginOfBody());
> +     last = min(last, par.size());
>  
>       int n = 0;
>       for (pos_type p = first; p < last; ++p) {


Abdel, should I wait with this patch until you've checked
in your recent cleanup?


Peter

Reply via email to