On Wed, Aug 27, 2003 at 10:44:10PM +0200, Alfredo Braunstein wrote:
> Saves a few cycles (and lines), and is enough. Ok?

> 
> Alfredo
> 
> Index: paragraph_funcs.C
> ===================================================================
> RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/paragraph_funcs.C,v
> retrieving revision 1.64
> diff -u -p -u -r1.64 paragraph_funcs.C
> --- paragraph_funcs.C   27 Aug 2003 15:38:21 -0000      1.64
> +++ paragraph_funcs.C   27 Aug 2003 20:41:14 -0000
> @@ -1052,12 +1052,8 @@ ParagraphList::iterator outerPar(Buffer 
>         ParIterator pit = const_cast<Buffer &>(buf).par_iterator_begin();
>         ParIterator end = const_cast<Buffer &>(buf).par_iterator_end();
>         for ( ; pit != end; ++pit) {
> -
> -               ParagraphList * plist;
> -               // the second '=' below is intentional
> -               for (int i = 0; (plist = inset->getParagraphs(i)); ++i)
> -                       if (plist == &pit.plist())
> -                               return pit.outerPar();
> +               if (inset->getParagraphs(0) == &pit.plist())
> +                       return pit.outerPar();
>  
>                 InsetList::iterator ii = pit->insetlist.begin();
>                 InsetList::iterator iend = pit->insetlist.end();

Does this work for tables?

Andre'

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

Reply via email to