Ignore:
Timestamp:
Jul 9, 2013 8:20:10 PM (11 years ago)
Author:
gah
Message:

fix: change in XyLegend::reset method

File:
1 edited

Legend:

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

    r3454 r3764  
    108108    protected method _leaveMarker { g name }
    109109    private method _formatTickLabel { w value }
     110    private method ResetLegend {}
    110111
    111112    private variable _dispatcher "" ;# dispatcher for !events
     
    256257    }
    257258    pack $itk_component(legend) -expand yes -fill both
    258     after idle [subst {
    259         update idletasks
    260         $itk_component(legend) reset
    261     }]
     259    after idle [itcl::code $this ResetLegend]
    262260
    263261    # quick-and-dirty zoom functionality, for now...
     
    798796        }
    799797    }
    800     $itk_component(legend) reset
     798    ResetLegend
    801799}
    802800
     
    16271625    return $label
    16281626}
     1627
     1628#
     1629# ResetLegend --
     1630#
     1631itcl::body Rappture::BarchartResult::ResetLegend {} {
     1632    set g $itk_component(plot)
     1633    update idletasks
     1634    $itk_component(legend) reset [$g element show]
     1635}
Note: See TracChangeset for help on using the changeset viewer.