[Bug 63073] New: return value of addMergedRegion starting from 1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63073] New: return value of addMergedRegion starting from 1

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63073

            Bug ID: 63073
           Summary: return value of addMergedRegion starting from 1
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

HSSFSheet.addMergedRegion() returns index of the region,which starts from 0,but
return value of XSSFSheet.addMergedRegion() starts from 1

Is it a Bug?Their interface Sheet does not mention this

==============
Implementation In HSSFSheet:
return mrt.getNumberOfMergedRegions()-1;


And in XSSFSheet:
return ctMergeCells.sizeOfMergeCellArray();


forgot -1?

Version:4.0.1

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]