Skip to content

Fix pattern formatting - return correct field for pattern fill foreground#1543

Merged
tonyqus merged 1 commit into
nissl-lab:masterfrom
coassoftwaresystems:master
Apr 18, 2025
Merged

Fix pattern formatting - return correct field for pattern fill foreground#1543
tonyqus merged 1 commit into
nissl-lab:masterfrom
coassoftwaresystems:master

Conversation

@plpolak
Copy link
Copy Markdown
Contributor

@plpolak plpolak commented Apr 14, 2025

The class used to create conditional a formatting pattern is returning the wrong backing field for the FillForegroundColorColor property (it returns the background instead of the foreground).

@tonyqus tonyqus added this to the NPOI 2.7.4 milestone Apr 14, 2025
if (!_fill.IsSetPatternFill() || !_fill.GetPatternFill().IsSetFgColor())
return null;
return new XSSFColor(_fill.GetPatternFill().bgColor);
return new XSSFColor(_fill.GetPatternFill().fgColor);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@tonyqus
Copy link
Copy Markdown
Member

tonyqus commented Apr 18, 2025

LGTM

@tonyqus tonyqus merged commit 2d3d238 into nissl-lab:master Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants