From 7f5fe97ceb77b4b1705fe099a490f456cfbfed2d Mon Sep 17 00:00:00 2001 From: Daniel Baston Date: Wed, 23 Oct 2024 09:24:45 -0400 Subject: [PATCH] Python bindings: Fix typo in handling of Translate widthPct, heightPct --- swig/include/python/gdal_python.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swig/include/python/gdal_python.i b/swig/include/python/gdal_python.i index 7a553aef44a0..9fef57d021e5 100644 --- a/swig/include/python/gdal_python.i +++ b/swig/include/python/gdal_python.i @@ -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: