mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 05:40:38 +01:00
[apps/graph] Limit the textfield size when renaming a function
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define GRAPH_LIST_TEXT_FIELD_FUNCTION_TITLE_CELL_H
|
||||
|
||||
#include <apps/shared/function_title_cell.h>
|
||||
#include <apps/shared/storage_function.h>
|
||||
#include <apps/shared/text_field_with_extension.h>
|
||||
|
||||
namespace Graph {
|
||||
@@ -30,7 +31,7 @@ public:
|
||||
protected:
|
||||
KDRect textFieldFrame() const;
|
||||
private:
|
||||
constexpr static int k_textFieldBufferSize = TextField::maxBufferSize();
|
||||
constexpr static int k_textFieldBufferSize = Shared::StorageFunction::k_maxNameWithArgumentSize;
|
||||
Shared::TextFieldWithExtension m_textField;
|
||||
char m_textFieldBuffer[k_textFieldBufferSize];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user