Changeset 962 for trunk/gui/scripts


Ignore:
Timestamp:
Mar 25, 2008 12:19:50 PM (16 years ago)
Author:
dkearney
Message:

code cleanups.
adjusted gague.tcl to check the length of the string it receives for integers and reals.
modified c, matlab, and octave's lib function to handle empty string for creation of empty library.
modified matlab and octave's lib result function to handle status as a parameter.
fixed core library code to deal with incorrect order of translating xml entity references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/gauge.tcl

    r738 r962  
    234234        switch -- $itk_option(-type) {
    235235            integer {
    236                 if {![string is integer $nv]} {
     236                if {[string length $nv] <= 0
     237                      || ![string is integer $nv] } {
    237238                    error "Should be an integer value"
    238239                }
    239240            }
    240241            real {
    241                 if {![string is double $nv]
     242                if {[string length $nv] <= 0
     243                      || ![string is double $nv]
    242244                      || [regexp -nocase {^(inf|nan)$} $nv]} {
    243245                    error "Should be a real number"
Note: See TracChangeset for help on using the changeset viewer.