From 3e81d29d814a16e6f9bac575e9f11a888849f1e7 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 8 May 2015 09:45:38 +0300 Subject: [PATCH] Fix for crash on working with not-activated document --- src/Model/Model_Update.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 93f321bec..93f50a171 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -191,7 +191,9 @@ void Model_Update::updateInDoc(std::shared_ptr theDoc) for (; aRIter != aResults.cend(); aRIter++) { ResultPartPtr aPart = std::dynamic_pointer_cast(*aRIter); if (aPart.get()) { - updateInDoc(aPart->partDoc()); + if (aPart->isActivated()) { + updateInDoc(aPart->partDoc()); + } } } } -- 2.39.2