Skip to content

Commit

Permalink
Address 3773
Browse files Browse the repository at this point in the history
Adjust cloud value to deliver -1 as the default instead of None.
  • Loading branch information
JorjMcKie committed Aug 13, 2024
1 parent eca7066 commit 8118358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14378,7 +14378,7 @@ def JM_annot_set_border( border, doc, annot_obj):
nwidth = border.get( dictkey_width) # new width
ndashes = border.get( dictkey_dashes) # new dashes
nstyle = border.get( dictkey_style) # new style
nclouds = border.get( 'clouds') # new clouds value
nclouds = border.get( 'clouds', -1) # new clouds value

# get old border properties
oborder = JM_annot_border( annot_obj)
Expand All @@ -14396,7 +14396,7 @@ def JM_annot_set_border( border, doc, annot_obj):
if nstyle is None:
nstyle = oborder.get( dictkey_style) # no new style: keep old
if nclouds < 0:
nclouds = oborder.get( "clouds") # no new clouds: keep old
nclouds = oborder.get( "clouds", -1) # no new clouds: keep old

if isinstance( ndashes, tuple) and len( ndashes) > 0:
dashlen = len( ndashes)
Expand Down

0 comments on commit 8118358

Please sign in to comment.