Changeset 36495 in osm


Ignore:
Timestamp:
2026-03-13T17:49:18+01:00 (4 days ago)
Author:
stoecker
Message:

fix #24670 - patch by DanProgs - code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/AttributionSupport.java

    r36223 r36495  
    124124
    125125    public boolean handleAttributionCursor(Point p) {
    126         if (attrTextBounds != null && attrTextBounds.contains(p)) {
    127             return true;
    128         } else if (attrImageBounds != null && attrImageBounds.contains(p)) {
    129             return true;
    130         } else if (attrToUBounds != null && attrToUBounds.contains(p)) {
    131             return true;
    132         }
    133         return false;
     126        if (p == null) return false;
     127
     128        return (attrTextBounds != null && attrTextBounds.contains(p))
     129            || (attrImageBounds != null && attrImageBounds.contains(p))
     130            || (attrToUBounds != null && attrToUBounds.contains(p));
    134131    }
    135132
Note: See TracChangeset for help on using the changeset viewer.