Ignore:
Timestamp:
Nov 12, 2010 9:16:17 AM (13 years ago)
Author:
gah
Message:

add unit cell to molvisviewer

File:
1 edited

Legend:

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

    r1641 r1943  
    341341        }
    342342    }
    343     return [Rappture::icon exclaim]
     343    # The htmlwidget assumes it owns the image and will delete it.
     344    # Always create a copy of the image.
     345    set img [Rappture::icon exclaim]
     346    set file [$img configure -file]
     347    set img [image create photo -file $file]
     348    return $img
    344349}
    345350
Note: See TracChangeset for help on using the changeset viewer.