mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0025359: In Draw Test Harness: content of menu-items "Curves" and "Surfaces" is increased after each sample launching
Menus "Curves" and "Surfaces" are destroyed now (if they exist) before displaying.
This commit is contained in:
parent
ba4feb7629
commit
196b01482b
@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
if { [info commands addmenu] == "" } { return }
|
if { [info commands addmenu] == "" } { return }
|
||||||
|
|
||||||
|
global theMenus
|
||||||
|
if [info exists theMenus(Curves)] {
|
||||||
|
destroy [string trimright $theMenus(Curves) ".menu"]
|
||||||
|
unset theMenus(Curves)
|
||||||
|
}
|
||||||
|
|
||||||
addmenu Curves "Line" {
|
addmenu Curves "Line" {
|
||||||
dialbox line name l origin {0 0 0} direction {1 0 0}
|
dialbox line name l origin {0 0 0} direction {1 0 0}
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
if { [info commands addmenu] == "" } { return }
|
if { [info commands addmenu] == "" } { return }
|
||||||
|
|
||||||
|
global theMenus
|
||||||
|
if [info exists theMenus(Surfaces)] {
|
||||||
|
destroy [string trimright $theMenus(Surfaces) ".menu"]
|
||||||
|
unset theMenus(Surfaces)
|
||||||
|
}
|
||||||
|
|
||||||
proc dialanasurf {command sname args} {
|
proc dialanasurf {command sname args} {
|
||||||
set com "dialbox $command name $sname origin {0 0 0} normal {0 0 1} xdir {1 0 0} "
|
set com "dialbox $command name $sname origin {0 0 0} normal {0 0 1} xdir {1 0 0} "
|
||||||
foreach l $args {append com " $l"}
|
foreach l $args {append com " $l"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user