Skip to content

Commit

Permalink
Fix: Apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MoIbrahim10 committed Dec 3, 2024
1 parent ef04a4e commit b055652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Html2OpenXml/Expressions/Table/TableCellExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ protected override void ComposeStyles(ParsingContext context)
{
base.ComposeStyles(context);

Unit width = styleAttributes.GetUnit("width");
Unit width = styleAttributes!.GetUnit("width");

if (!width.IsValid)
{
var widthValue = node.GetAttribute("width");
var widthValue = this.node.GetAttribute("width");
if (!string.IsNullOrEmpty(widthValue))
{
width = Unit.Parse(widthValue);
Expand Down

0 comments on commit b055652

Please sign in to comment.