#2567 Label with long text draws garbage

obsolete: 8.4.19
open
Jeffrey Hobbs
5
2010-01-05
2008-12-12
Vaclav Hanzl
No

Label with text exceeding certain limit draws text several times with different horizontal positions, resulting in garbage:

label .lab -text [string repeat "Abc" 16000]
pack .lab

On my system, repeat count 6000 is OK and 7000 and higher draws garbage.

Tested with 8.5.1 (latest tclkit I found for 32bit Linux) and 8.4.12.

Looking through existing bug reports, the closest match I found was [ 547593 ] Error creating Label > 32k pixels , which was closed years ago.

Discussion

  • Pat Thoyts
    Pat Thoyts
    2010-01-05

    Reproduced on 8.5.8 and 8.6 HEAD. The label appears to overwrite itself multiple times rather than clipping.
    ttk::label clips properly.

     
  • Pat Thoyts
    Pat Thoyts
    2010-01-05

    • milestone: --> obsolete: 8.4.19
     
  • Pat Thoyts
    Pat Thoyts
    2010-01-05

    On Windows such a label does not draw anything (repro'd on 8.4.19 and 8.5.8)