Changeset 8238 in josm


Ignore:
Timestamp:
2015-04-19T22:46:20+02:00 (9 years ago)
Author:
simon04
Message:

see #10217 - Fix reset/flickering/cache issue wrt rotated MapCSS icons

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

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

    r8199 r8238  
    359359        hash = 17 * hash + (mapImage != null ? mapImage.hashCode() : 0);
    360360        hash = 17 * hash + (symbol != null ? symbol.hashCode() : 0);
     361        hash = 17 * hash + (mapImageAngle != null ? mapImageAngle.hashCode() : 0);
    361362        return hash;
    362363    }
     
    374375            return false;
    375376        if (!Objects.equals(symbol, other.symbol))
     377            return false;
     378        if (!Objects.equals(mapImageAngle, other.mapImageAngle))
    376379            return false;
    377380        return true;
     
    388391            s.append(" symbol=[" + symbol + "]");
    389392        }
     393        if (mapImageAngle != null) {
     394            s.append(" mapImageAngle=[" + mapImageAngle + "]");
     395        }
    390396        s.append('}');
    391397        return s.toString();
  • trunk/src/org/openstreetmap/josm/gui/util/RotationAngle.java

    r8199 r8238  
    2828            public double getRotationAngle(OsmPrimitive p) {
    2929                return angle;
     30            }
     31
     32            @Override
     33            public String toString() {
     34                return angle + "rad";
    3035            }
    3136        };
     
    116121                }
    117122            }
     123
     124            @Override
     125            public String toString() {
     126                return "way-direction";
     127            }
    118128        };
    119129    }
Note: See TracChangeset for help on using the changeset viewer.