diff --git a/ClosedXML/Excel/XLWorkbook_Load.cs b/ClosedXML/Excel/XLWorkbook_Load.cs index 3d3386b..f2080c5 100644 --- a/ClosedXML/Excel/XLWorkbook_Load.cs +++ b/ClosedXML/Excel/XLWorkbook_Load.cs @@ -1440,14 +1440,11 @@ if (fontColor.HasValue) fontBase.FontColor = fontColor; - var fontFamilyNumbering = fontSource.Elements().FirstOrDefault(); + var fontFamilyNumbering = + fontSource.Elements().FirstOrDefault(); if (fontFamilyNumbering != null && fontFamilyNumbering.Val != null) - fontBase.FontFamilyNumbering = (XLFontFamilyNumberingValues)Int32.Parse(fontFamilyNumbering.Val.ToString()); - - var fontCharSet = fontSource.Elements().FirstOrDefault(); - if (fontCharSet != null && fontCharSet.Val != null) - fontBase.FontCharSet = (XLFontCharSet)Int32.Parse(fontCharSet.Val.ToString()); - + fontBase.FontFamilyNumbering = + (XLFontFamilyNumberingValues)Int32.Parse(fontFamilyNumbering.Val.ToString()); var runFont = fontSource.Elements().FirstOrDefault(); if (runFont != null) { @@ -1842,7 +1839,7 @@ { var conditionalFormat = new XLConditionalFormat(ws.Range(sor.Value)); - conditionalFormat.StopIfTrueInternal = fr.StopIfTrue; + conditionalFormat.StopIfTrueInternal = OpenXmlHelper.GetBooleanValueAsBool(fr.StopIfTrue, false); if (fr.FormatId != null) { diff --git a/ClosedXML_Examples/ConditionalFormatting/ConditionalFormatting.cs b/ClosedXML_Examples/ConditionalFormatting/ConditionalFormatting.cs index a90c1b1..769afa2 100644 --- a/ClosedXML_Examples/ConditionalFormatting/ConditionalFormatting.cs +++ b/ClosedXML_Examples/ConditionalFormatting/ConditionalFormatting.cs @@ -676,7 +676,7 @@ .CellBelow().SetValue(2) .CellBelow().SetValue(3); - ws.RangeUsed().AddConditionalFormat().StopIfTrue(true).WhenGreaterThan(5); + ws.RangeUsed().AddConditionalFormat().StopIfTrue().WhenGreaterThan(5); ws.RangeUsed().AddConditionalFormat().IconSet(XLIconSetStyle.ThreeTrafficLights2, true, true)