Prevent endless-loops

svn path=/trunk/playground/graphics/okular/; revision=586047
This commit is contained in:
Tobias Koenig 2006-09-18 15:30:44 +00:00
parent 21b3dc4263
commit 265c541925

View file

@ -300,8 +300,10 @@ bool Converter::convertList( const QDomElement &element )
loop++;
const QDomElement paragraphElement = child.firstChildElement();
if ( paragraphElement.tagName() != QLatin1String( "p" ) )
if ( paragraphElement.tagName() != QLatin1String( "p" ) ) {
child = child.nextSiblingElement();
continue;
}
// FIXME: as soon as Qt is fixed
// if ( loop > 1 )