From dcbc860b6dc2c2f2fcc9b1a1084b179d6bd8f024 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 15 Sep 2017 07:01:03 -0400 Subject: [PATCH] Fallback to X in non-graphing apps since x and n are not usable. --- apps/graph/app.cpp | 4 ++++ apps/graph/app.h | 1 + apps/shared/text_field_delegate_app.cpp | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/graph/app.cpp b/apps/graph/app.cpp index dffce42f6..55ec6262c 100644 --- a/apps/graph/app.cpp +++ b/apps/graph/app.cpp @@ -86,4 +86,8 @@ Context * App::localContext() { return TextFieldDelegateApp::localContext(); } +const char * App::XNT() { + return "x"; +} + } diff --git a/apps/graph/app.h b/apps/graph/app.h index 2f8bd7cc7..5ac2f36ff 100644 --- a/apps/graph/app.h +++ b/apps/graph/app.h @@ -38,6 +38,7 @@ public: * use a temporary local context (on the stack). That way, we avoid keeping * weird x values after drawing curves or displaying the value table. */ Poincare::Context * localContext() override; + const char * XNT() override; private: App(Container * container, Snapshot * snapshot); Poincare::VariableContext m_xContext; diff --git a/apps/shared/text_field_delegate_app.cpp b/apps/shared/text_field_delegate_app.cpp index 5ef401fdc..53f902209 100644 --- a/apps/shared/text_field_delegate_app.cpp +++ b/apps/shared/text_field_delegate_app.cpp @@ -22,7 +22,7 @@ AppsContainer * TextFieldDelegateApp::container() { } const char * TextFieldDelegateApp::XNT() { - return "x"; + return "X"; } const char * TextFieldDelegateApp::privateXNT(TextField * textField) {