mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 15:20:39 +01:00
[apps/shared] ExpressionModelHandle: specify the symbol that is turned
into Unknown X in Derived classes
This commit is contained in:
@@ -90,8 +90,8 @@ Ion::Storage::Record::ErrorStatus ExpressionModelHandle::setContent(const char *
|
||||
if (c && *c != 0) {
|
||||
// Compute the expression to store, without replacing symbols
|
||||
expressionToStore = Expression::Parse(c);
|
||||
if (!expressionToStore.isUninitialized()) {
|
||||
expressionToStore = expressionToStore.replaceUnknown(Symbol::Builder('x')); //TODO Beware of non x unknowns! (for instance whe sequences are in the storage)
|
||||
if (!expressionToStore.isUninitialized() && symbol() != 0) {
|
||||
expressionToStore = expressionToStore.replaceUnknown(Symbol::Builder(symbol()));
|
||||
}
|
||||
}
|
||||
return setExpressionContent(expressionToStore);
|
||||
|
||||
Reference in New Issue
Block a user