Tk Source Code

View Ticket
Login
Ticket UUID: 7bf7dcd36d757e8dcd27afa2cddc3998284cfccb
Title: floor.tcl: make usable again on 8.6
Type: Patch Version: 8.6.12
Submitter: chrstphrchvz Created on: 2022-08-18 18:55:42
Subsystem: 05. Canvas Items Assigned To: fvogel
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2022-08-20 13:51:46
Resolution: Fixed Closed By: chrstphrchvz
    Closed on: 2022-08-20 13:51:46
Description:

As part of the patch I submitted in [2beda17141bb] I corrected some of the default settings for polygon items, and I adjusted the floor plan canvas demo to accommodate the new defaults. The defaults were backed out for 8.6 but the updates to the floor plan demo were not, which has left it unusable on 8.6 on all platforms because the updated demo assumes polygon items have -fill {} by default rather than NORMAL_FG. The attached patch ensures -fill {} is set for polygon items to make it usable again on 8.6.

User Comments: chrstphrchvz added on 2022-08-20 13:51:46:

Thanks for merging this. I agree with leaving -fill {} in place for 8.7, both for compatibility across versions and to avoid any confusion regarding the new default values.


fvogel added on 2022-08-19 19:54:41:

Correct, thanks for the patch!

I have committed it directly in core-8-6-branch (since the work on [2beda17141bb] also happened without a bugfix branch). This fixes the floor.tcl demo indeed.

Regarding 8.7 ("main" branch) I could have left the change out since the default is not the same as in 8.6 but I finally decided to commit (actually: merge) the patch in 8.7 as well so that we don't have unnecessary differences in demo code for the two versions. If you think this is the right choice, please just let me know.


Attachments: