mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
Merge changes I13cebe8a,Iee7c65e1
* changes: [apps/graph] Fix bug [apps/calculations] Fix selection error
This commit is contained in:
@@ -77,6 +77,7 @@ bool HistoryController::handleEvent(Ion::Events::Event event) {
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::Clear) {
|
||||
selectableTableView()->deselectTable();
|
||||
m_calculationStore->deleteAll();
|
||||
reload();
|
||||
app()->setFirstResponder(parentResponder());
|
||||
|
||||
@@ -18,7 +18,7 @@ void CartesianFunction::setDisplayDerivative(bool display) {
|
||||
|
||||
float CartesianFunction::approximateDerivative(float x, Poincare::Context * context) const {
|
||||
Poincare::Complex abscissa = Poincare::Complex::Float(x);
|
||||
Poincare::Expression * args[2] = {m_expression, &abscissa};
|
||||
Poincare::Expression * args[2] = {expression(), &abscissa};
|
||||
Poincare::Derivative derivative;
|
||||
derivative.setArgument(args, 2, true);
|
||||
return derivative.approximate(*context);
|
||||
|
||||
Reference in New Issue
Block a user