Skip to content

Commit

Permalink
Remove disambiguation on code
Browse files Browse the repository at this point in the history
  • Loading branch information
onizet committed Dec 11, 2024
1 parent 48af833 commit 5c6bfe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Html2OpenXml/Expressions/Table/TableCellExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5c6bfe2

Please sign in to comment.