tdehtml: Prevent a crash in case of a image that is not in cache.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
feat/tdehtml+svg
Slávek Banko 3 years ago
parent 4df3893c30
commit 003976f81b
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -241,7 +241,7 @@ void RenderImage::paint(PaintInfo& paintInfo, int _tx, int _ty)
? m_oldImage : m_cachedImage;
// paint frame around image as long as it is not completely loaded from web.
if (bUnfinishedImageFrame && paintInfo.phase == PaintActionForeground && cWidth > 2 && cHeight > 2 && !complete() && !i->isVectorImage()) {
if (bUnfinishedImageFrame && paintInfo.phase == PaintActionForeground && cWidth > 2 && cHeight > 2 && !complete() && !(i && i->isVectorImage())) {
static TQPixmap *loadingIcon;
TQColor bg = tdehtml::retrieveBackgroundColor(this);
TQColor fg = tdehtml::hasSufficientContrast(Qt::gray, bg) ? Qt::gray :

Loading…
Cancel
Save