mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps/sequence] Fix maxFirstIndex for double recursive sequences
This commit is contained in:
committed by
LeaNumworks
parent
f2d1247cf9
commit
58d10403e2
@@ -121,7 +121,9 @@ bool ListParameterController::textFieldShouldFinishEditing(TextField * textField
|
||||
}
|
||||
|
||||
bool ListParameterController::textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) {
|
||||
static float maxFirstIndex = std::pow(10.0, Sequence::k_initialRankNumberOfDigits);
|
||||
static float maxFirstIndex = std::pow(10.0f, Sequence::k_initialRankNumberOfDigits) - 1.0f;
|
||||
/* -1 to take into account a double recursive sequence, which has
|
||||
* SecondIndex = FirstIndex + 1 */
|
||||
AppsContainer * appsContainer = ((TextFieldDelegateApp *)app())->container();
|
||||
Context * globalContext = appsContainer->globalContext();
|
||||
float floatBody = Expression::approximateToScalar<float>(text, *globalContext);
|
||||
|
||||
Reference in New Issue
Block a user