Skip to content

Commit 53abbf0

Browse files
author
Rhys Weatherley
committed
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
1 parent c2dca4c commit 53abbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/image/qppmhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static bool write_pbm_image(QIODevice *out, const QImage &sourceImage, const QBy
264264
bool gray = format == "pgm";
265265

266266
if (format == "pbm") {
267-
image = image.convertToFormat(QImage::Format_MonoLSB);
267+
image = image.convertToFormat(QImage::Format_Mono);
268268
} else if (image.depth() == 1) {
269269
image = image.convertToFormat(QImage::Format_Indexed8);
270270
} else {

0 commit comments

Comments
 (0)