X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fautomation.h;fp=cinelerra-5.1%2Fcinelerra%2Fautomation.h;h=e25b6376c9d1d26720c57d50d405029a32f4b0ae;hp=615a9d55197f3b19cda11d376bb4803c4d6f1e28;hb=a6e4ede4b9a11b56b3aece044ff2a1546630ca38;hpb=6c1465645d68ce303a0651a07781567869351840 diff --git a/cinelerra-5.1/cinelerra/automation.h b/cinelerra-5.1/cinelerra/automation.h index 615a9d55..e25b6376 100644 --- a/cinelerra-5.1/cinelerra/automation.h +++ b/cinelerra-5.1/cinelerra/automation.h @@ -45,14 +45,14 @@ CLAMP(value, 0, 100); \ if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \ value = 0; \ - else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0.001) \ - value = 0.001; + else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN) \ + value = SPEED_MIN; #define AUTOMATIONVIEWCLAMPS(value, autogrouptype) \ if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \ value = 0; \ - else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0) \ - value = 0; + else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN) \ + value = SPEED_MIN; class Automation