Skip to content

Commit

Permalink
Minor chart style range fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Feb 19, 2023
1 parent 833e731 commit 0090f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xlsxwriter/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def set_style(self, style_id):
if style_id is None:
style_id = 2

if style_id < 0 or style_id > 48:
if style_id < 1 or style_id > 48:
style_id = 2

self.style_id = style_id
Expand Down

0 comments on commit 0090f08

Please sign in to comment.