[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/plugins/textshape
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2010-11-29 15:27:49
Message-ID: 20101129152749.A1B6AAC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202078 by sebsauer:

backport r1202073; Fix crash on pasting a html table.
BUG:237651


 M  +4 -0      TableLayout.cpp  


--- trunk/koffice/plugins/textshape/TableLayout.cpp #1202077:1202078
@@ -486,6 +486,10 @@
 {
     Q_ASSERT(isValid());
     Q_ASSERT(cell.row() < m_tableLayoutData->m_rowPositions.size());
+    
+    if (m_tableLayoutData->m_tableRects.isEmpty())
+        return QRectF(QPointF(0.0,0.0), QSizeF(0.0,0.0));
+
     TableRect tableRect = m_tableLayoutData->m_tableRects.last();
     int i = m_tableLayoutData->m_tableRects.size()-1;
     while (tableRect.fromRow > cell.row()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic