Fallback to X in non-graphing apps since x and n are not usable.

This commit is contained in:
Jacob Young
2017-09-15 07:01:03 -04:00
committed by EmilieNumworks
parent 128a6acb32
commit dcbc860b6d
3 changed files with 6 additions and 1 deletions

View File

@@ -86,4 +86,8 @@ Context * App::localContext() {
return TextFieldDelegateApp::localContext();
}
const char * App::XNT() {
return "x";
}
}

View File

@@ -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<float> m_xContext;

View File

@@ -22,7 +22,7 @@ AppsContainer * TextFieldDelegateApp::container() {
}
const char * TextFieldDelegateApp::XNT() {
return "x";
return "X";
}
const char * TextFieldDelegateApp::privateXNT(TextField * textField) {