mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation] Calculation: invalid heights memoization when forcing the
display output
This commit is contained in:
committed by
LeaNumworks
parent
a2a47bb8ae
commit
c3d8e09ceb
@@ -274,6 +274,12 @@ Calculation::DisplayOutput Calculation::displayOutput(Context * context) {
|
||||
return m_displayOutput;
|
||||
}
|
||||
|
||||
void Calculation::forceDisplayOutput(DisplayOutput d) {
|
||||
m_displayOutput = d;
|
||||
// Reset heights memoization as it might have changed when we modify the display output
|
||||
m_height = -1;
|
||||
m_expandedHeight = -1;
|
||||
}
|
||||
bool Calculation::shouldOnlyDisplayExactOutput() {
|
||||
/* If the input is a "store in a function", do not display the approximate
|
||||
* result. This prevents x->f(x) from displaying x = undef. */
|
||||
|
||||
Reference in New Issue
Block a user