You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/04/01 13:07:34 UTC
DO NOT REPLY [Bug 50884] sheet.createFreezePane messes up pane
location
https://issues.apache.org/bugzilla/show_bug.cgi?id=50884
--- Comment #7 from mcroci@gmail.com 2011-04-01 07:07:31 EDT ---
(In reply to comment #6)
> (In reply to comment #5)
> > But I think there is a Problem in this code snapshot:
> >
> > if (rowSplit == 0) {
> > pane.setTopLeftCell(new CellReference(0, topRow).formatAsString());
> >
> > (from XSSFSheet.createFreezePane)
> > If there is only a column split the file is not correct (topRow is used and
> > this is wrong)
>
> What do you think it should be?
>
> (We'll probably want to work up another unit test that checks that HSSF and
> XSSF agree, but it'd be worth ensuring that we end up with the correct same
> answer!)
I think it should be
if (rowSplit == 0) {
pane.setTopLeftCell(new CellReference(0, colSplit).formatAsString());
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org