Skip to content
Snippets Groups Projects
Commit 82779d9d authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*added check for canvas scroll to make sure window exists (fixes stderr errors)

parent 02d1dfce
No related branches found
No related tags found
No related merge requests found
...@@ -4296,6 +4296,7 @@ proc pdtk_find_highest_widget_withtag {canvas name} { ...@@ -4296,6 +4296,7 @@ proc pdtk_find_highest_widget_withtag {canvas name} {
#} #}
proc pdtk_canvas_getscroll {name} { proc pdtk_canvas_getscroll {name} {
if {![winfo exists $name]} {return}
set parentname [winfo parent $name] set parentname [winfo parent $name]
if {$::scroll($parentname) == 0} {return} if {$::scroll($parentname) == 0} {return}
# if {$::editmode($parentname) == 0} { # if {$::editmode($parentname) == 0} {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment