diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-23 07:15:50 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-23 07:15:50 (GMT) |
commit | 53abbf0cedbf2e3478e63c1b007d27a943df630d (patch) | |
tree | cf5da1868021586d4c6138b6ecd1f6a405ea74b3 /src | |
parent | c2dca4c9f1eb360305de5ea520a0b322737dc600 (diff) | |
download | Qt-53abbf0cedbf2e3478e63c1b007d27a943df630d.zip Qt-53abbf0cedbf2e3478e63c1b007d27a943df630d.tar.gz Qt-53abbf0cedbf2e3478e63c1b007d27a943df630d.tar.bz2 |
Use Mono instead of MonoLSB when writing pbm files.
PBM files are MSB, not LSB - the pbm reader was correct,
but not the pbm writer.
Task-number: QTBUG-6937
Reviewed-by: Sarah Smith
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qppmhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/image/qppmhandler.cpp b/src/gui/image/qppmhandler.cpp index 762f4e9..3bb0744 100644 --- a/src/gui/image/qppmhandler.cpp +++ b/src/gui/image/qppmhandler.cpp @@ -264,7 +264,7 @@ static bool write_pbm_image(QIODevice *out, const QImage &sourceImage, const QBy bool gray = format == "pgm"; if (format == "pbm") { - image = image.convertToFormat(QImage::Format_MonoLSB); + image = image.convertToFormat(QImage::Format_Mono); } else if (image.depth() == 1) { image = image.convertToFormat(QImage::Format_Indexed8); } else { |