[apps] "New Matrix" item in math toolbox.

Change-Id: Iec01ffa96ec64f42d2cbc4b15b14eea7cfe4eaa4
This commit is contained in:
Léa Saviot
2018-01-17 12:11:28 +01:00
parent cb6a526072
commit d8803c610c
13 changed files with 64 additions and 21 deletions

View File

@@ -119,8 +119,9 @@ void VariableBoxController::ContentViewController::willDisplayCellForIndex(Highl
}
void VariableBoxController::ContentViewController::insertTextInCaller(const char * text) {
char commandBuffer[strlen(text)+1];
Shared::ToolboxHelpers::TextToInsertForCommandText(text, commandBuffer);
int commandBufferMaxSize = strlen(text)+1;
char commandBuffer[commandBufferMaxSize];
Shared::ToolboxHelpers::TextToInsertForCommandText(text, commandBuffer, commandBufferMaxSize);
if (m_textFieldCaller != nullptr) {
if (!m_textFieldCaller->isEditing()) {
m_textFieldCaller->setEditing(true);