Changeset 132 for trunk/gui/scripts


Ignore:
Timestamp:
Nov 7, 2005 10:58:27 PM (18 years ago)
Author:
mmc
Message:

Fixed a scaling bug that caused images to come up so tiny
that you couldn't see them at first.

File:
1 edited

Legend:

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

    r126 r132  
    319319
    320320    if {$_scale(max) == "?"} {
    321         _zoom rescale
     321        if {![_zoom rescale]} {
     322            return
     323        }
    322324    }
    323325    if {$_scale(current) == "?"} {
     
    394396                set w [winfo width $itk_component(image)]
    395397                set h [winfo height $itk_component(image)]
     398                if {$w == 1 && $h == 1} {
     399                    return 0
     400                }
    396401
    397402                set wfac [expr {$_max(w)/double($w)}]
     
    399404                set _scale(max) [expr {($wfac > $hfac) ? $wfac : $hfac}]
    400405            }
     406            return 1
    401407        }
    402408        reset {
Note: See TracChangeset for help on using the changeset viewer.