Menu

#987 put command corrupt (with -format and -to option)

obsolete: 8.3
closed-fixed
nobody
5
2001-04-02
2001-02-16
Anonymous
No

Bug report:

File "generic/tkImgPhoto.c", function "ImgPhotoCmd":

"imageName put" command does not work correctly,
when used in conjunction with "-format" and "-to" option.

Bug fix:

Line 966:
0, 0, imageWidth, imageHeight, options.toX, options.toY)

should be changed to:
options.toX, options.toY, imageWidth, imageHeight, 0, 0)

Applicable Tk versions:

Noticed this bug in tk8.3.2 as well as tk8.4a2.
Seems to be introduced with the Img patch in 8.3.

Discussion

  • Don Porter

    Don Porter - 2001-03-24
    • labels: 104340 --> 41. Photo Images
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2001-04-02
    • status: open --> closed-fixed
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2001-04-02

    Logged In: YES
    user_id=72656

    Looking at the code, this is a pretty clear case of 'oops'
    on that part. Of course, you need extra image handlers to
    trigger it, because the core ones don't support the -format
    in that case. Fixed in 8.4a3.