From a7b491fc5096714fe1514e68dafd476e1d3b2c7a Mon Sep 17 00:00:00 2001 From: san Date: Mon, 14 Jul 2014 12:10:06 +0400 Subject: [PATCH] 0025008: wrong PPM generated in mage_AlienPixMap::savePPM --- src/Image/Image_AlienPixMap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image/Image_AlienPixMap.cxx b/src/Image/Image_AlienPixMap.cxx index 8b805740d7..8a8739b787 100644 --- a/src/Image/Image_AlienPixMap.cxx +++ b/src/Image/Image_AlienPixMap.cxx @@ -331,7 +331,7 @@ bool Image_AlienPixMap::savePPM (const TCollection_AsciiString& theFileName) con Standard_Byte aByte; for (Standard_Size aRow = 0; aRow < SizeY(); ++aRow) { - for (Standard_Size aCol = 0; aCol < SizeY(); ++aCol) + for (Standard_Size aCol = 0; aCol < SizeX(); ++aCol) { // extremely SLOW but universal (implemented for all supported pixel formats) aColor = PixelColor ((Standard_Integer )aCol, (Standard_Integer )aRow, aDummy);