Commit 85ad8a31 authored by Alfredo Beaumont Sainz's avatar Alfredo Beaumont Sainz
Browse files

forward port: fix compilation error in big endian architectures

svn path=/trunk/koffice/; revision=547741
parent 4a218a1e
......@@ -1464,8 +1464,8 @@ QImage KisImage::convertToQImage(const QRect& r, const QSize& scaledImageSize, K
}
}*/
#ifdef __BIG_ENDIAN__
uchar * data = img.bits();
for (int i = 0; i < w * h; ++i) {
uchar * data = image.bits();
for (int i = 0; i < image.width() * image.height(); ++i) {
uchar r, g, b, a;
a = data[0];
b = data[1];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment