From fb2ecc88fb2accb44f290990e1fbfe7654e89117 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 24 Jun 2020 11:50:54 +0300 Subject: [PATCH] Fix for the #19720 : Wrong part position after reloading hdf. If the part is hidden, in the display event processing do not called "shape" of the part, so, the shape is not initialized and "Update" event for the feature is not called. --- src/Model/Model_Update.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index bd9c7bfda..4deb924bf 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -308,6 +308,10 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag aFeatures.push_back(*anObjIter); } else { aResults.push_back(*anObjIter); + ResultPartPtr aPart = std::dynamic_pointer_cast(*anObjIter); + if (aPart.get() && aPart->data().get() && aPart->data()->isValid()) { + aPart->shape(); // to update the shape on creation of the result + } } } } -- 2.39.2