From 61bfcd51872360fca6723740ae6c2762f03b5a4e Mon Sep 17 00:00:00 2001 From: alberto-azserve <113976391+alberto-azserve@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:35:49 +0100 Subject: [PATCH] Fix Stretch & Skew error --- src/functions.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/functions.js b/src/functions.js index 9bbf2645..0d096c9e 100644 --- a/src/functions.js +++ b/src/functions.js @@ -3571,17 +3571,17 @@ function image_stretch_and_skew() { width: "40px", }).addClass("no-spinner inset-deep"); $(E("td")).appendTo($tr).append($img); - $(E("td")).appendTo($tr).append($(E("label")).html(render_access_key(label_with_hotkey)).attr("for", input_id)); + $(E("td")).appendTo($tr).append($(E("label")).html(render_access_key(localize(label_with_hotkey))).attr("for", input_id)); $(E("td")).appendTo($tr).append($input); $(E("td")).appendTo($tr).text(label_unit); return $input; }; - const stretch_x = $RowInput($fieldset_stretch.find("table"), "stretch-x", localize("&Horizontal:"), 100, "%", 1, 5000); - const stretch_y = $RowInput($fieldset_stretch.find("table"), "stretch-y", localize("&Vertical:"), 100, "%", 1, 5000); - const skew_x = $RowInput($fieldset_skew.find("table"), "skew-x", localize("H&orizontal:"), 0, localize("Degrees"), -90, 90); - const skew_y = $RowInput($fieldset_skew.find("table"), "skew-y", localize("V&ertical:"), 0, localize("Degrees"), -90, 90); + const stretch_x = $RowInput($fieldset_stretch.find("table"), "stretch-x", "&Horizontal:", 100, "%", 1, 5000); + const stretch_y = $RowInput($fieldset_stretch.find("table"), "stretch-y", "&Vertical:", 100, "%", 1, 5000); + const skew_x = $RowInput($fieldset_skew.find("table"), "skew-x", "H&orizontal:", 0, localize("Degrees"), -90, 90); + const skew_y = $RowInput($fieldset_skew.find("table"), "skew-y", "V&ertical:", 0, localize("Degrees"), -90, 90); $w.$Button(localize("OK"), () => { const x_scale = parseFloat(stretch_x.val()) / 100;