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; }