[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/plugins/reportspgz/backend/common
From: Adam Pigg <adam () piggz ! co ! uk>
Date: 2008-09-27 22:55:41
Message-ID: 1222556141.242457.24402.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 865521 by piggz:
Dont crash if the path doesnt exist or isnt an image.
M +7 -1 krimagedata.cpp
--- trunk/koffice/kexi/plugins/reportspgz/backend/common/krimagedata.cpp #865520:865521
@@ -114,7 +114,13 @@
if (!fn.isEmpty()) {
QPixmap pix(fn);
- _staticImage->setValue(pix);
+ if (!pix.isNull())
+ _staticImage->setValue(pix);
+ else {
+ QPixmap blank(1,1);
+ blank.fill();
+ _staticImage->setValue(blank);
+ }
} else {
QByteArray binaryStream;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic