v0.4: fixed default value validation for v3
This commit is contained in:
+4
-2
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package require Tk
|
package require Tk
|
||||||
|
|
||||||
set appversion 0.3
|
set appversion 0.4
|
||||||
set scriptpath [file normalize [info script]]
|
set scriptpath [file normalize [info script]]
|
||||||
set appdir [file dirname $scriptpath]
|
set appdir [file dirname $scriptpath]
|
||||||
# check if we're running from a starpack
|
# check if we're running from a starpack
|
||||||
@@ -359,7 +359,9 @@ proc fullscanscheme {version} {
|
|||||||
if {$size eq 1} {set fmt cu}
|
if {$size eq 1} {set fmt cu}
|
||||||
if {$size eq 2} {set fmt s}
|
if {$size eq 2} {set fmt s}
|
||||||
if {$size eq 4} {set fmt i}
|
if {$size eq 4} {set fmt i}
|
||||||
binary scan [string range $rawschemedata $offs [expr {$offs + $size}]] $fmt wscval
|
set newval ""
|
||||||
|
binary scan [string range $rawschemedata $offs [expr {$offs + $size}]] $fmt newval
|
||||||
|
if {$newval ne ""} {set wscval $newval}
|
||||||
if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} {
|
if {([llength $valopt] > 1) && ([lindex $valopt 0] eq "spec")} {
|
||||||
set readfunc "[lindex $valopt 1]_read"
|
set readfunc "[lindex $valopt 1]_read"
|
||||||
set wscval [$readfunc $wscval]
|
set wscval [$readfunc $wscval]
|
||||||
|
|||||||
Reference in New Issue
Block a user