Skip to content

Commit

Permalink
Python bindings: Fix typo in handling of Translate widthPct, heightPct
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Oct 24, 2024
1 parent 03085a3 commit 7f5fe97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swig/include/python/gdal_python.i
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,7 @@ def TranslateOptions(options=None, format=None,
if width != 0 or height != 0:
new_options += ['-outsize', str(width), str(height)]
elif widthPct != 0 and heightPct != 0:
new_options += ['-outsize', str(widthPct) + '%%', str(heightPct) + '%%']
new_options += ['-outsize', str(widthPct) + '%', str(heightPct) + '%']
if creationOptions is not None:
_addCreationOptions(new_options, creationOptions)
if srcWin is not None:
Expand Down

0 comments on commit 7f5fe97

Please sign in to comment.