From 682ba5529540b03ce96e3890d24fe310adee4291 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 12 Mar 2024 20:26:31 +0100 Subject: [PATCH] fixed broken position of counter gadget to select level in editor --- src/editor.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/editor.c b/src/editor.c index 6e240560..6da69dfd 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8250,9 +8250,12 @@ static void MapCounterButtons(int id) ModifyEditorCounterValue(id, *counterbutton_info[id].value); // set position for counter gadgets with dynamically determined position - ModifyGadget(gi_down, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); - ModifyGadget(gi_text, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); - ModifyGadget(gi_up, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + if (id != ED_COUNTER_ID_SELECT_LEVEL) + { + ModifyGadget(gi_down, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + ModifyGadget(gi_text, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + ModifyGadget(gi_up, GDI_Y, SY + ED_SETTINGS_Y(counterbutton_info[id].y), GDI_END); + } // vertical position might have changed after setting position above y = gi_up->y + yoffset; -- 2.34.1