Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: f02d3018ab5540b7241d9aa04343b7e82ef813db
Ticket: 4b414efd7a7ef7fc37fb70d8fad5207ad4d5038b
Tk_GetGC returns incorrect GC
User & Date: anonymous 2015-05-01 18:13:24
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Tk_GetGC() can return an incorrect GC when a new GC is added which contains XGCValues that are default values. Example, set the foreground to black (value 0). The following patch adds valueMask to hash key, insuring a unique hash key.
    
    tk8.6.4/generic/tkGC.c
    31a32
    >     unsigned long mask;
    99a101
    >     valueKey.mask = valueMask;
    
  5. foundin changed to: "8.6.4"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "d1f0e9338b80a1c52a557b60c288ec1bc232d0ab"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "64. Graphic Contexts"
  15. title changed to: "Tk_GetGC returns incorrect GC"
  16. type changed to: "Patch"