Changeset 10405 in josm for trunk/src


Ignore:
Timestamp:
2016-06-16T19:14:33+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #12959 - Do not make unit tests rely on JFrame for headless mode (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r10395 r10405  
    315315
    316316    protected void updateLocationState() {
    317         if (SwingUtilities.getWindowAncestor(this) != null && isShowing()) {
     317        if (isVisibleOnScreen()) {
    318318            state = state.usingLocation(this);
    319319        }
     320    }
     321
     322    protected boolean isVisibleOnScreen() {
     323        return SwingUtilities.getWindowAncestor(this) != null && isShowing();
    320324    }
    321325
Note: See TracChangeset for help on using the changeset viewer.