[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/filelight/src/part/radialMap
From: Martin Tobias Holmedahl Sandsmark <sandsmark () samfundet ! no>
Date: 2010-05-26 19:26:42
Message-ID: 20100526192642.F107CAC8C0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1130925 by sandsmark:
explicit warning for when painting fails
M +4 -1 map.cpp
--- trunk/playground/utils/filelight/src/part/radialMap/map.cpp #1130924:1130925
@@ -280,7 +280,10 @@
//**** best option you can think of is to make the circles slightly less perfect,
// ** i.e. slightly eliptic when resizing inbetween
- paint.begin(&m_pixmap);
+ if (!paint.begin(&m_pixmap)) {
+ kWarning() << "Failed to initialize painting, returning...";
+ return;
+ }
if (antialias && Config::antialias) {
paint.translate(0.7, 0.7);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic