summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPPM.c
diff options
context:
space:
mode:
authorredman <redman>1999-07-01 00:39:38 (GMT)
committerredman <redman>1999-07-01 00:39:38 (GMT)
commitb25a3044a3cf9e9972515d62b1210ab9f48542de (patch)
treed6929409d78b4fb5eb9279cff651a5b7217fb203 /generic/tkImgPPM.c
parentdc805df6643379e019ae55d9932aea6a3d58c05c (diff)
downloadtk-b25a3044a3cf9e9972515d62b1210ab9f48542de.zip
tk-b25a3044a3cf9e9972515d62b1210ab9f48542de.tar.gz
tk-b25a3044a3cf9e9972515d62b1210ab9f48542de.tar.bz2
Patches from Bug: 2068 2080 2269
Diffstat (limited to 'generic/tkImgPPM.c')
-rw-r--r--generic/tkImgPPM.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkImgPPM.c b/generic/tkImgPPM.c
index 4342670..a86a254 100644
--- a/generic/tkImgPPM.c
+++ b/generic/tkImgPPM.c
@@ -13,7 +13,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPPM.c,v 1.4 1999/04/24 01:50:47 stanton Exp $
+ * RCS: @(#) $Id: tkImgPPM.c,v 1.5 1999/07/01 00:39:44 redman Exp $
*/
#include "tkInt.h"
@@ -183,6 +183,7 @@ FileReadPPM(interp, chan, fileName, formatString, imageHandle, destX, destY,
block.offset[1] = 1;
block.offset[2] = 2;
}
+ block.offset[3] = 0;
block.width = width;
block.pitch = block.pixelSize * fileWidth;