Skip to content

Commit

Permalink
Fix min_length data_bar attribute
Browse files Browse the repository at this point in the history
Append min_length to attributes even if min_length == 0
  • Loading branch information
DanilFilippov123 authored Dec 19, 2024
1 parent 3e45ab8 commit addff33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xlsxwriter/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -7756,10 +7756,10 @@ def _write_data_bar(self, param):

# Min and max bar lengths in in the spec but not supported directly by
# Excel.
if param.get("min_length"):
if "min_length" in param:
attributes.append(("minLength", param["min_length"]))

if param.get("max_length"):
if "max_length" in param:
attributes.append(("maxLength", param["max_length"]))

if param.get("bar_only"):
Expand Down

0 comments on commit addff33

Please sign in to comment.