From 82dffcb9f9e1db0a14e823251b14a7de00c4b211 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Thu, 27 Apr 2023 16:02:26 +0200 Subject: [PATCH] Disallow negative spacing in style editor again Since it turns out that this is not supported by the renderer anyway, see arch1t3cht/Aegisub#48 . --- src/dialog_style_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog_style_editor.cpp b/src/dialog_style_editor.cpp index 03c7629fe..856ef4b68 100644 --- a/src/dialog_style_editor.cpp +++ b/src/dialog_style_editor.cpp @@ -210,7 +210,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con auto ScaleX = num_text_ctrl(&work->scalex, 0.0, 10000.0, 1, 2); auto ScaleY = num_text_ctrl(&work->scaley, 0.0, 10000.0, 1, 2); auto Angle = num_text_ctrl(&work->angle, -360.0, 360.0, 1.0, 2); - auto Spacing = num_text_ctrl(&work->spacing, -1000.0, 1000.0, 0.1, 3); + auto Spacing = num_text_ctrl(&work->spacing, 0.0, 1000.0, 0.1, 3); Encoding = new wxComboBox(this, -1, "", wxDefaultPosition, wxDefaultSize, encodingStrings, wxCB_READONLY); // Set control tooltips