Changeset 29952 in osm


Ignore:
Timestamp:
2013-09-24T01:25:55+02:00 (11 years ago)
Author:
oliverw
Message:

[josm_elevationprofile]: Do not alter component font in paint method (caused continous repaints) (fix #josm8080)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java

    r29949 r29952  
    7272                addComponentListener(this);
    7373                addMouseMotionListener(this);           
     74               
     75                Font lFont = getFont().deriveFont(9.0f);
     76                setFont(lFont);
    7477        }
    7578
     
    186189                isPainting = true;
    187190               
    188                 Font oldFont = getFont();
    189                 Font lFont = getFont().deriveFont(9.0f);
    190                 setFont(lFont);
    191191                try {
    192192                        super.paint(g);
     
    219219                        }
    220220                } finally {
    221                         setFont(oldFont);
    222221                        isPainting = false;
    223222                }
     
    548547                return super.getToolTipText();
    549548        }
    550        
    551        
    552 
    553549}
Note: See TracChangeset for help on using the changeset viewer.