On Tue, Feb 26, 2002 at 08:08:33PM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Ok, here is the patch. How extensive should a test like this > Martin> be? It loads a file, I can change layouts of paragraphs, > Martin> either individually (under cursor) or collectively (selection) > Martin> just fine. As that is what setLayout is doing, that should be > Martin> tested -- but what else? > > That's probably enough. > > Martin> PS. the 'if' statement at the end of the loop is essential ;-) > > Or you could test cur.par().previous(), no? > > JMarc
Perhaps. But this works and is quite legible, don't you think? Martin
msg33501/pgp00000.pgp
Description: PGP signature