Changeset 6012


Ignore:
Timestamp:
Feb 15, 2016 11:14:50 AM (8 years ago)
Author:
ldelgass
Message:

Remove unused legend component

File:
1 edited

Legend:

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

    r6009 r6012  
    275275        grid                   0
    276276        grid-type              "shader"
    277         legend                 1
    278277        terrain-ambient        0.03
    279278        terrain-edges          0
     
    351350    BuildCameraTab
    352351    BuildHelpTab
    353 
    354     # Legend
    355 
    356     set _image(legend) [image create photo]
    357     itk_component add legend {
    358         canvas $itk_component(plotarea).legend -width 50 -highlightthickness 0
    359     } {
    360         usual
    361         ignore -highlightthickness
    362         rename -background -plotbackground plotBackground Background
    363     }
    364352
    365353    # Hack around the Tk panewindow.  The problem is that the requested
     
    11071095    if { [IsConnected] } {
    11081096        set bytes [ReceiveBytes $size]
    1109         if { ![info exists _image(legend)] } {
     1097        if { ![info exists _image(legend-$colormap)] } {
    11101098            set _image(legend-$colormap) [image create photo]
    11111099        }
Note: See TracChangeset for help on using the changeset viewer.