Changeset 6125


Ignore:
Timestamp:
Mar 15, 2016, 12:58:21 PM (8 years ago)
Author:
ldelgass
Message:

merge r6123 from 1.5 branch (don't create photo if empty contents)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/gui/scripts/drawingentry.tcl

    r5659 r6125  
    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.