Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-275

Range.getRow() return unexpected row number

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.0 RC
    • Fix Version/s: 3.0.0 RC
    • Component/s: ZSS Component
    • Labels:

      Description

      Problem Description:

      When using API to get the row index of a named range of cells, it returns a wrong row value.

      for example a named range has 6 cells and its first row is at row 12, so namedRange.getRow() should return 11 but it returns 0.

      java.lang.AssertionError: 
      Expected: <11>
           but: was <0>
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.junit.Assert.assertThat(Assert.java:865)
      
      

      Reproducing Steps:

      1. run test case
      run automatic test case CellDataTest.testNamedRange() of the project zss.test of zkspreadsheet

      2. use attached file.
      use API to get row like Ranges.range(sheet, "TestRange1").getRow()

        Attachments

          Activity

            People

            • Assignee:
              dennis dennis
              Reporter:
              hawk hawk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: