From 4556fae98d080d726f1c0f87a0cf4434ffc69317 Mon Sep 17 00:00:00 2001 From: ichesnok Date: Wed, 14 Jun 2023 08:39:23 +0100 Subject: [PATCH] // fix --- src/NCollection/NCollection_Array2.hxx | 4 ++-- src/XCAFDoc/XCAFDoc_Animation.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NCollection/NCollection_Array2.hxx b/src/NCollection/NCollection_Array2.hxx index a06d435c74..58dd25ffb5 100644 --- a/src/NCollection/NCollection_Array2.hxx +++ b/src/NCollection/NCollection_Array2.hxx @@ -179,10 +179,10 @@ public: Standard_Integer NbColumns() const { return myUpperCol - myLowerCol + 1; } //! Returns length of the row, i.e. number of columns - Standard_Integer RowLength() const { return NbColumns(); } + Standard_Integer RowLength() const { return NbRows(); } //! Returns length of the column, i.e. number of rows - Standard_Integer ColLength() const { return NbRows(); } + Standard_Integer ColLength() const { return NbColumns(); } //! LowerRow Standard_Integer LowerRow (void) const diff --git a/src/XCAFDoc/XCAFDoc_Animation.cxx b/src/XCAFDoc/XCAFDoc_Animation.cxx index eff1b5f53a..705a58355b 100644 --- a/src/XCAFDoc/XCAFDoc_Animation.cxx +++ b/src/XCAFDoc/XCAFDoc_Animation.cxx @@ -426,6 +426,7 @@ Handle(XCAFAnimObjects_AnimObject) XCAFDoc_Animation::GetObject() const aNewOperObj->SetInverse(anIsInvert); anOrderedOperations.Append(aNewOperObj); } + anObj->ChangeOrderedOperations() = anOrderedOperations; return anObj; }