Changeset 2227 in josm


Ignore:
Timestamp:
Oct 3, 2009 12:20:06 PM (4 years ago)
Author:
stoecker
Message:

fixed #3640 - double checks against fixed numbers are dangerous

File:
1 edited

Legend:

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

    r2224 r2227  
    760760                checkLayout(splitChild); 
    761761            } 
    762             if (weight > 1.0) { 
     762            if (weight > 1.0 + 0.000000001) { /* add some epsilon to a double check */ 
    763763                throwInvalidLayout("Split children's total weight > 1.0", root); 
    764764            } 
Note: See TracChangeset for help on using the changeset viewer.