Changeset 6123


Ignore:
Timestamp:
Mar 11, 2016, 5:07:53 AM (8 years ago)
Author:
gah
Message:

don't create photo if empty contents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/gui/scripts/drawingentry.tcl

    r5679 r6123  
    578578        }
    579579    }
    580     set contents [XmlGetSubst $cpath.contents]
     580    set contents [string trim [XmlGetSubst $cpath.contents]]
    581581    set img ""
    582582    if { [string compare -length 7 $contents "file://"] == 0 } {
     
    602602        puts stderr  "don't know how to handle http"
    603603        return
    604     } else {
     604    } elseif { $contents != "" } {
    605605        set img [image create photo -data $contents]
    606606    }
    607     if {$img eq ""} {
     607    if {$img == ""} {
    608608        return
    609609    }
Note: See TracChangeset for help on using the changeset viewer.