mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
@@ -25,7 +25,7 @@ bool ExpressionFieldDelegateApp::layoutFieldDidReceiveEvent(LayoutField * layout
|
||||
}
|
||||
char buffer[TextField::maxBufferSize()];
|
||||
int bufferSize = TextField::maxBufferSize();
|
||||
int length = layoutField->serialize(buffer, bufferSize);
|
||||
int length = layoutField->layout().serializeForParsing(buffer, bufferSize);
|
||||
if (length >= bufferSize-1) {
|
||||
/* If the buffer is totally full, it is VERY likely that writeTextInBuffer
|
||||
* escaped before printing utterly the expression. */
|
||||
|
||||
Reference in New Issue
Block a user