Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-698

KEIKAI-302 rounds zero integer value from non-zero cell value cause missing cells displays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • 5.12.0
    • None
    • None
    • None

      Steps to Reproduce

      Run keikai with library property

      <library-property>
      <name>io.keikai.spreadsheet.showZeroValues</name>
      <value>false</value>
      </library-property>
      

      type value in sheet 1 (any cell): 0.3
      switch to sheet 2
      switch to sheet 1

      Current Result

      values that if converted to integer round to zero are hidden by the showZeroValues set to false

      Expected Result

      only cells with values strictly equal to zero should be hidden

      Debug Information

      Cause by ((Number) value).intValue() == 0 check
      rounds the value before comparing to zero

      Workaround

      attached class
      deploy to io.keikai.ui.SpreadsheetCtrlImpl to override default

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: