Range.getRow() return unexpected row number

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 3.0.0 RC
    • Affects Version/s: 3.0.0 RC
    • Component/s: 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()

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

              Created:
              Updated:
              Resolved: