Hi,
and what about findFirstCell() ?
:))) ,
Roman
----- Original Message -----
From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
To: "POI Development" <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 3:26 PM
Subject: Re: HSSFRow bug ?
> On Mon, 2002-04-08 at 05:19, Libin Roman wrote:
> > Good Morning :)))
> >
> > I Find something interesting in your source code.
> >
> > in HSSFRow :
> > private short findLastCell(short lastcell)
> > {
> > short cellnum = (short)(lastcell - 1);
> > HSSFCell r = getCell(cellnum);
> >
> > while (r == null)
> > {
> > r = getCell(--cellnum);
> > }
> > return cellnum;
> > }
> >
> > ok, by the logic . what if I have created a only cell that for example
will be in place 20, and then I am trying to remove it. This function will
run in cycles , because it cant find a cell that isn't null.
> >
> > For this case there is 2 solutions.
> > 1. The logic should be that it will be always 0 cell .
> > 2. We got a need to fix it bug
> > while ((r == null) && (cellnum >= 0))
> >
> > Any takers, or I will submit a patch :) ?
> >
>
> Yes please!
>
> > Thanks,
> > Waiting For
Answer :))
> >
> >
> >
> >
> >
> --
> http://www.superlinksoftware.com
> http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
> Document
> format to java
> http://developer.java.sun.com/developer/bugParade/bugs/4487555.html
> - fix java generics!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>