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

render a cell's font incorrectly with conditional formatting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: