mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] text_field_function_title_cell: fix read of uninitialized buffer
This fixes the following crash: when reloading the cell before initializing the m_textFieldBuffer, TextField::ContentView::text() will use the content of the uninitialized m_textFieldBuffer to compute the minimalSizeForOptimalDisplay.
This commit is contained in:
@@ -8,7 +8,8 @@ namespace Graph {
|
||||
TextFieldFunctionTitleCell::TextFieldFunctionTitleCell(ListController * listController, Orientation orientation, const KDFont * font) :
|
||||
Shared::FunctionTitleCell(orientation),
|
||||
Responder(listController),
|
||||
m_textField(Shared::Function::k_parenthesedThetaArgumentByteLength, this, m_textFieldBuffer, k_textFieldBufferSize, k_textFieldBufferSize, nullptr, listController, font, 1.0f, 0.5f)
|
||||
m_textField(Shared::Function::k_parenthesedThetaArgumentByteLength, this, m_textFieldBuffer, k_textFieldBufferSize, k_textFieldBufferSize, nullptr, listController, font, 1.0f, 0.5f),
|
||||
m_textFieldBuffer("")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user