Revision 34936

View differences:

branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/layout/fframes/FFrameView.java
54 54
import java.awt.geom.Rectangle2D;
55 55
import java.awt.image.BufferedImage;
56 56

  
57
import javax.swing.SwingUtilities;
58

  
57 59
import org.cresques.cts.IProjection;
58 60
import org.slf4j.Logger;
59 61
import org.slf4j.LoggerFactory;
......
784 786
     *
785 787
     * @param e DOCUMENT ME!
786 788
     */
787
    public void legendChanged(LegendChangedEvent e) {
789
    public void legendChanged(final LegendChangedEvent e) {
790
        if( !SwingUtilities.isEventDispatchThread() ) {
791
            SwingUtilities.invokeLater(new Runnable() {
792
                public void run() {
793
                    legendChanged(e);
794
                }
795
            });
796
            return;
797
        }       
788 798
        if (getLinked()) {
789 799
            getLayoutControl().setStatus(LayoutControl.DESACTUALIZADO);
790 800
            refresh=true;
791
            //setBufferedImage(null);
792 801
        }
793 802
    }
794 803

  

Also available in: Unified diff