From 6aab93f3fe7312f973baf8652fc426916eebeb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 17 Oct 2018 14:09:37 +0200 Subject: [PATCH] [apps/graph] Limit the textfield size when renaming a function --- apps/graph/list/text_field_function_title_cell.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/graph/list/text_field_function_title_cell.h b/apps/graph/list/text_field_function_title_cell.h index 29403f5fb..2fdf8f6b6 100644 --- a/apps/graph/list/text_field_function_title_cell.h +++ b/apps/graph/list/text_field_function_title_cell.h @@ -2,6 +2,7 @@ #define GRAPH_LIST_TEXT_FIELD_FUNCTION_TITLE_CELL_H #include +#include #include 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]; };