Tk Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: fc00ac785864a5d97f4fa0c9f3d370138a2d2059
Ticket: 3295abf0786394dc8bb96ecadc30ce4a57e6af0e
ico: incorrect use of $img put
User & Date: anonymous 2017-01-09 17:31:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In the ico module there are the following four lines:
    
    <verbatim>
    /tklib-0.6/modules/ico/ico.tcl(557):	$img put -to 0 0 $colors
    /tklib-0.6/modules/ico/ico.tcl(563):    $img put -to $x $y $clr
    /tklib-0.6/modules/ico/ico0.tcl(400):	$img put -to 0 0 $colors
    /tklib-0.6/modules/ico/ico0.tcl(406):	$img put -to $x $y $clr
    </verbatim>
    
    This is an incorrect use of the put command. Documentation says:
    
    <b>imageName put data ?option value(s) ...? </b>
    
    However the code in the ico module uses:
    
    <b>imageName put ?option value(s) ...? data </b>
    
    The latter used to be accepted, although undocumented, but will soon no longer be. See:
    
    http://core.tcl.tk/tk/tktview?name=d4fb4e80d2
    
    Fix is easy and consists in swapping the order of the data and the options arguments.
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a013af67114eccc19ad12b04f14923acea9e96b7"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "tklib :: ico"
  15. title changed to: "ico: incorrect use of $img put"
  16. type changed to: "Bug"