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

List:       kde-commits
Subject:    =?utf-8?q?=5Bcalligra/text-layoutrestructure-boemann=5D_libs/tex?=
From:       Sebastian Sauer <sebastian.sauer () kdab ! com>
Date:       2011-04-14 17:28:44
Message-ID: 20110414172844.03F84A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 87eef89a87059751a0d9e144ac48e1382263a8d3 by Sebastian Sauer.
Committed on 14/04/2011 at 19:11.
Pushed by sebsauer into branch 'text-layoutrestructure-boemann'.

Better assertr in our code then in Qt ;)

M  +1    -0    libs/textlayout/KoTextLayoutTableArea.cpp     

http://commits.kde.org/calligra/87eef89a87059751a0d9e144ac48e1382263a8d3

diff --git a/libs/textlayout/KoTextLayoutTableArea.cpp b/libs/textlayout/KoTextLayoutTableArea.cpp
index d05afd2..7d13f8d 100644
--- a/libs/textlayout/KoTextLayoutTableArea.cpp
+++ b/libs/textlayout/KoTextLayoutTableArea.cpp
@@ -307,6 +307,7 @@ bool KoTextLayoutTableArea::layout(TableIterator *cursor)
         }
         if (d->headerRows) {
             // Also set the position of the border below headers
+            Q_ASSERT(d->headerRows < d->rowPositions.count());
             cursor->headerRowPositions[d->headerRows] = d->rowPositions[d->headerRows];
         }
         cursor->headerPositionX = d->columnPositions[0];

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

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