[apps/sequence] Fix math_toolbox wrong functions calls.

Change-Id: I0b7871e87ea64ef9fbd008d9fb3e6d4cce2e97ca
This commit is contained in:
Léa Saviot
2018-01-19 16:42:05 +01:00
parent f3e6b10410
commit 251c4d01af
2 changed files with 3 additions and 4 deletions

View File

@@ -114,9 +114,8 @@ void SequenceToolbox::setExtraCells(const char * sequenceName, int recurrenceDep
bool SequenceToolbox::selectAddedCell(int selectedRow){
int bufferSize = 10;
char buffer[bufferSize];
int currentChar = m_addedCellLayout[selectedRow]->writeTextInBuffer(buffer, bufferSize);
textFieldSender()->insertTextAtLocation(buffer, textFieldSender()->cursorLocation());
textFieldSender()->setCursorLocation(textFieldSender()->cursorLocation()+currentChar);
m_addedCellLayout[selectedRow]->writeTextInBuffer(buffer, bufferSize);
m_action(sender(), buffer);
app()->dismissModalViewController();
return true;
}