Ignore:
Timestamp:
2026-04-17T07:46:00+02:00 (9 days ago)
Author:
GerdP
Message:

see #24695: Unpredictable result when scaling or rotating an object again
fix unit tests (testEqualsContract())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/RotateCommand.java

    r19566 r19568  
    124124    @Override
    125125    public int hashCode() {
    126         return Objects.hash(super.hashCode(), pivot, startAngle, rotationAngle);
     126        return Objects.hash(super.hashCode(), pivot, startAngle, rotationAngle, deltaAngle);
    127127    }
    128128
     
    135135        return Double.compare(that.startAngle, startAngle) == 0 &&
    136136                Double.compare(that.rotationAngle, rotationAngle) == 0 &&
    137                 Objects.equals(pivot, that.pivot);
     137                Objects.equals(pivot, that.pivot) &&
     138                Objects.equals(deltaAngle, that.deltaAngle);
    138139    }
    139140}
Note: See TracChangeset for help on using the changeset viewer.