From e187db758a964c8314cd549e8893577a4624931c Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sat, 2 Feb 2013 02:23:15 -0800 Subject: [PATCH] Fix crash from Relto age journal book --- Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp b/Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp index 3178b3c9..aaa2c9ad 100644 --- a/Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp +++ b/Sources/Plasma/FeatureLib/pfJournalBook/pfJournalBook.cpp @@ -2665,7 +2665,7 @@ void pfJournalBook::IRenderPage( uint32_t page, uint32_t whichDTMap, bool sup idx--; break; } - if( chunk->fText[ lastChar ] != 0 ) + if (lastChar < chunk->fText.size() && chunk->fText[lastChar] != 0) { // Didn't get to render the whole paragraph in this go, so we're going to cheat // and split the paragraph up into two so that we can handle it properly. Note: