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

render a cell's font incorrectly with conditional formatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.6.1
    • 5.6.0
    • None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      1. import the attached file
      2. check the font at A1

      Current Result

      calibri

      Expected Result

      arial

      Debug Information

      • the font at A1 should be "impact".

      Root Cause

      io.keikai.range.impl.StyleUtil

      
      public static SFont getFontStyle(SBook book, SCellStyle cellStyle, SCellStyle tbCellStyle, SConditionalStyle cdStyle) {
      		if (cdStyle != null && cdStyle.getFont() != null) {
      			return cdStyle.getFont();
      		}
      ...
      }
      

      It always uses conditional formatting's font instead of the cell's font.

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: