1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0031697: Foundation Classes - Expr_GeneralExpression::Derivative does not seem to work (691 & 720)

Expr_NamedUnknown.cxx - wrong comparing of named unknown is fixed

QABugs_20.cxx - new QAcommand is created
QABugs_11.cxx - wrong command is corrected
bug902 - wrong test is corrected
bug31697 - new test is added
This commit is contained in:
ifv
2020-08-06 13:07:52 +03:00
committed by bugmaster
parent e0b2443737
commit 1bf23e5bb6
5 changed files with 100 additions and 10 deletions

View File

@@ -130,7 +130,7 @@ Standard_Boolean Expr_NamedUnknown::IsLinear () const
Handle(Expr_GeneralExpression) Expr_NamedUnknown::Derivative (const Handle(Expr_NamedUnknown)& X) const
{
Handle(Expr_NamedUnknown) me = this;
if (me != X) {
if (!me->IsIdentical(X)) {
if (IsAssigned()) {
return myExpression->Derivative(X);
}