Tk Source Code

View Ticket
Login
Ticket UUID: daa1009718ec16fe0f00aedfd14d9ef490a43aab
Title: SVG image configure has a missing list element
Type: Bug Version: Tk 8.7
Submitter: kjnash Created on: 2023-08-16 21:45:17
Subsystem: 41. Photo Images Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2023-08-17 11:49:06
Resolution: Fixed Closed By: oehhar
    Closed on: 2023-08-17 11:49:06
Description:
There is a missing list element in the -metadata option of a SVG image in [$img configure].

[$img configure -metadata] has no problem:

% ::tk::icons::information configure -metadata
-metadata {} {} {} {}

But the -metadata list has an element missing in the full [$img configure] -

% set a {}
% foreach line [::tk::icons::information configure] {
    if {[lindex $line 0] eq {-metadata}} {
        set a $line
    }
}
% set a
-metadata {} {}  {}
% llength $a
4
User Comments: oehhar added on 2023-08-17 11:48:49:

Thanks, Keith ! This was a general issue with "fconfigure -metadata", not only with svg.

Fixed with commit: [7c8bdae5] including a new test case.

Bug closed.

Thanks again, Harald


oehhar added on 2023-08-17 11:05:24:

I have probably caused this issue. Will have a look.

Thanks for reporting, I appreciate, Harald