From a2be8384c5f80d5060e09ce704ac720a82ff2055 Mon Sep 17 00:00:00 2001 From: Mohammad Mahfuzur Rahman Mamun Date: Fri, 22 Jul 2011 15:07:13 +0600 Subject: [PATCH] A little change for crash if there is no textPage but, yet correctTextOrder() is called --- core/page.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/page.cpp b/core/page.cpp index a9eb395d9..de14e9101 100644 --- a/core/page.cpp +++ b/core/page.cpp @@ -452,9 +452,10 @@ void Page::setTextPage( TextPage * textPage ) if ( d->m_text ) { d->m_text->d->m_page = d; + // Code for Text Selection + d->m_text->correctTextOrder(); } - // Code for Text Selection - d->m_text->correctTextOrder(); + } void Page::setObjectRects( const QLinkedList< ObjectRect * > & rects )