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

Range.getRow() return unexpected row number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.0.0 RC
    • 3.0.0 RC
    • ZSS Component

      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()

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

              Created:
              Updated:
              Resolved: