From 341c3700eb0fb076a3106e9d39a79245d7200a92 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Fri, 17 Aug 2007 06:35:19 +0000 Subject: [PATCH] Faster background drawing. Speeds up a lot zooming operations and general compositing. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=701053 --- svg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svg.cpp b/svg.cpp index 27726c7d6..8fab1ef40 100644 --- a/svg.cpp +++ b/svg.cpp @@ -135,7 +135,9 @@ class Svg::Private renderer->render(&renderPainter, elementId); } renderPainter.end(); - QPixmapCache::insert( id, p ); + bool inserted = QPixmapCache::insert( id, p ); + if (!inserted) + kDebug() << "pixmap cache is too small for inserting" << id << "of size" << s; } void createRenderer()