[poincare] Layout::serialize is serializeForParsing or ParsedExpression

serializeForParsing serializes the layout once,
serializeParsedExpression serializes the layout, parses it and
serializes it again.
This commit is contained in:
Léa Saviot
2018-11-21 14:49:20 +01:00
committed by Émilie Feral
parent 2bdce9dd82
commit 94603b2b7d
11 changed files with 55 additions and 17 deletions

View File

@@ -157,7 +157,7 @@ bool EditExpressionController::inputViewDidFinishEditing(const char * text, Layo
assert(text);
strlcpy(m_cacheBuffer, text, k_cacheBufferSize);
} else {
layoutR.serialize(m_cacheBuffer, k_cacheBufferSize);
layoutR.serializeParsedExpression(m_cacheBuffer, k_cacheBufferSize);
}
m_calculationStore->push(m_cacheBuffer, calculationApp->localContext());
m_historyController->reload();