[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/rendering
From: Allan Sandfeld Jensen <kde () carewolf ! com>
Date: 2006-11-21 11:54:22
Message-ID: 1164110062.448226.9891.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 606681 by carewolf:
Don't crash on slashdot when using tags
M +3 -1 render_inline.cpp
--- branches/KDE/3.5/kdelibs/khtml/rendering/render_inline.cpp #606680:606681
@@ -535,7 +535,7 @@
static QPoint *linkEndToBegin(QValueVector<QPoint> &pointArray)
{
uint index = 0;
- Q_ASSERT(pointArray.size() >= 3);
+ assert(pointArray.size() >= 3);
// if first and last points match, ignore the last one.
bool linkup = false; QPoint linkupPnt;
@@ -582,6 +582,8 @@
// collect left outline
collectVerticalBoxCoordinates(curr, path, true, offset);
+ if (path.size() < 3) continue;
+
const QPoint *begin = linkEndToBegin(path);
// paint the outline
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic