diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-03-09 22:29:17 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-03-09 22:56:58 +0100 |
commit | 003976f81b99deaae413bb04f823ca1e5419929d (patch) | |
tree | c1058d6ecf23d11384f538f2790ee685feffe190 | |
parent | 4df3893c309d00e3710cbf8def6309c9af0abbd8 (diff) | |
download | tdelibs-003976f81b99deaae413bb04f823ca1e5419929d.tar.gz tdelibs-003976f81b99deaae413bb04f823ca1e5419929d.zip |
tdehtml: Prevent a crash in case of a image that is not in cache.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | tdehtml/rendering/render_image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdehtml/rendering/render_image.cpp b/tdehtml/rendering/render_image.cpp index 18bc62aed..4f3e87c99 100644 --- a/tdehtml/rendering/render_image.cpp +++ b/tdehtml/rendering/render_image.cpp @@ -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 : |