From 5c6bfe21a1f6bdae2d3d9fa52b783a8dbc45b609 Mon Sep 17 00:00:00 2001 From: Olivier Nizet Date: Wed, 11 Dec 2024 22:40:45 +0100 Subject: [PATCH] Remove disambiguation on code --- src/Html2OpenXml/Expressions/Table/TableCellExpression.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Html2OpenXml/Expressions/Table/TableCellExpression.cs b/src/Html2OpenXml/Expressions/Table/TableCellExpression.cs index 00d67f7..4e816f8 100644 --- a/src/Html2OpenXml/Expressions/Table/TableCellExpression.cs +++ b/src/Html2OpenXml/Expressions/Table/TableCellExpression.cs @@ -61,10 +61,9 @@ protected override void ComposeStyles(ParsingContext context) base.ComposeStyles(context); Unit width = styleAttributes!.GetUnit("width"); - if (!width.IsValid) { - var widthValue = this.node.GetAttribute("width"); + var widthValue = cellNode.GetAttribute("width"); if (!string.IsNullOrEmpty(widthValue)) { width = Unit.Parse(widthValue);