Index: library/nx/nx.tcl =================================================================== diff -u -N -rf5bba52ec263179be12a65a00a7d4f2282c445d2 -r025ab2b7de881cef0227b2d0bbd73749fe56f0b1 --- library/nx/nx.tcl (.../nx.tcl) (revision f5bba52ec263179be12a65a00a7d4f2282c445d2) +++ library/nx/nx.tcl (.../nx.tcl) (revision 025ab2b7de881cef0227b2d0bbd73749fe56f0b1) @@ -2026,15 +2026,17 @@ ::nx::VariableSlot protected method defineIncrementalOperations {options_single options} { # # Just define these setter methods, when these are not defined - # jet. We need the methods as well for e.g. private properties, + # yet. We need the methods as well for e.g. private properties, # where the setting of the property is handled via slot. # if {[:info lookup method value=set] eq "::nsf::classes::nx::VariableSlot::value=set"} { set args [list obj var [:namedParameterSpec {} value $options]] :public object method value=set $args {::nsf::var::set $obj $var $value} } if {[:isMultivalued] && [:info lookup method value=add] eq "::nsf::classes::nx::VariableSlot::value=add"} { - lappend options_single slot=[::nsf::self] + set slotObj "slot=[::nsf::self]" + # lappend options_single slot=[::nsf::self] + if {$slotObj ni $options_single} {lappend options_single $slotObj} set args [list obj prop [:namedParameterSpec {} value $options_single] {pos 0}] :public object method value=add $args {::nsf::next} } else { @@ -2053,7 +2055,8 @@ #puts "makeIncrementalOperations -- single $options_single type ${:type}" #if {[info exists :type]} {puts ".... type ${:type}"} set options [:getParameterOptions -withMultiplicity true] - lappend options slot=[::nsf::self] + set slotObj "slot=[::nsf::self]" + if {$slotObj ni $options} {lappend options $slotObj} :defineIncrementalOperations $options_single $options }