From 8a1ca8e05d8acf7bbbd0c1333aee8ab965c11bb7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Jun 2019 20:20:36 +0200 Subject: [PATCH] anims:: fixed hotkey clash and fallthrough --- screenshot.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/screenshot.cpp b/screenshot.cpp index 4edc605b..39ae3198 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -816,7 +816,7 @@ void show() { }); switch(ma) { case maCircle: { - animator(XLAT("circle spins"), circle_spins, 's'); + animator(XLAT("circle spins"), circle_spins, 'C'); dialog::addSelItem(XLAT("circle radius"), fts(circle_radius), 'c'); dialog::add_action([] () { dialog::editNumber(circle_radius, 0, 10, 0.1, acosh(1.), XLAT("circle radius"), ""); @@ -841,6 +841,7 @@ void show() { dialog::openColorDialog(circle_display_color, NULL); }); dialog::addBreak(100); + break; } case maTranslation: case maParabolic: { @@ -866,7 +867,7 @@ void show() { dialog::editNumber(parabolic_length, 0, 10, 1, 1, "cells to go", ""); }); } - dialog::addSelItem(XLAT("shift"), fts(shift_angle) + "°", 's'); + dialog::addSelItem(XLAT("shift"), fts(shift_angle) + "°", 'C'); dialog::add_action([] () { dialog::editNumber(shift_angle, 0, 90, 15, 0, XLAT("shift"), ""); }); @@ -878,7 +879,7 @@ void show() { } case maRotation: if(DIM == 3) { - dialog::addSelItem(XLAT("angle to screen normal"), fts(normal_angle) + "°", 's'); + dialog::addSelItem(XLAT("angle to screen normal"), fts(normal_angle) + "°", 'C'); dialog::add_action([] () { dialog::editNumber(normal_angle, 0, 360, 15, 0, XLAT("angle to screen normal"), ""); });