summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-02-04 13:44:07 (GMT)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2011-02-07 08:51:53 (GMT)
commit512b53969408fdd9c0a2950f3249fd3ca07b319e (patch)
treebcb66a08fbfcd67afeac81e32e9841f2663f7d01 /src/openvg
parent9ae73fcd011e26c920f91cf0b609f051c14920a8 (diff)
downloadQt-512b53969408fdd9c0a2950f3249fd3ca07b319e.zip
Qt-512b53969408fdd9c0a2950f3249fd3ca07b319e.tar.gz
Qt-512b53969408fdd9c0a2950f3249fd3ca07b319e.tar.bz2
Fix the broken QPixmap::fromSymbianRSgImage().
The retrieved VGImage handle was accidentally assigned to a local variable instead of the member with the same name so it always ended up creating an empty pixmap. Reviewed-by: Jani Hautakangas
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qvg_symbian.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qvg_symbian.cpp b/src/openvg/qvg_symbian.cpp
index 3ee1181..2ea38c1 100644
--- a/src/openvg/qvg_symbian.cpp
+++ b/src/openvg/qvg_symbian.cpp
@@ -147,7 +147,7 @@ void QVGPixmapData::fromNativeType(void* pixmap, NativeType type)
destroyImages();
prevSize = QSize();
- VGImage vgImage = sgImageToVGImage(context, *sgImage);
+ vgImage = sgImageToVGImage(context, *sgImage);
if (vgImage != VG_INVALID_HANDLE) {
w = vgGetParameteri(vgImage, VG_IMAGE_WIDTH);
h = vgGetParameteri(vgImage, VG_IMAGE_HEIGHT);