[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/calligra/2.9] words/part: Fix crash on exit - recently introduced
From: C. Boemann <cbo () boemann ! dk>
Date: 2015-01-29 16:33:28
Message-ID: E1YGs24-0005on-Uq () scm ! kde ! org
[Download RAW message or body]
Git commit 56e267dfd2f649306803775b97cf1e99f4345d9e by C. Boemann.
Committed on 28/01/2015 at 23:50.
Pushed by boemann into branch 'calligra/2.9'.
Fix crash on exit - recently introduced
M +1 -1 words/part/KWRootAreaProviderTextBox.cpp
http://commits.kde.org/calligra/56e267dfd2f649306803775b97cf1e99f4345d9e
diff --git a/words/part/KWRootAreaProviderTextBox.cpp b/words/part/KWRootAreaProviderTextBox.cpp
index a14cf0d..6a90242 100644
--- a/words/part/KWRootAreaProviderTextBox.cpp
+++ b/words/part/KWRootAreaProviderTextBox.cpp
@@ -125,7 +125,7 @@ KoTextLayoutRootArea *KWRootAreaProviderTextBox::provide(KoTextDocumentLayout *d
// afterThis==NULL means delete everything
void KWRootAreaProviderTextBox::releaseAllAfter(KoTextLayoutRootArea *afterThis)
{
- while (m_rootAreaCache.back() != afterThis){
+ while (m_rootAreaCache.count() != 0 && m_rootAreaCache.back() != afterThis){
m_rootAreaCache.removeLast();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic