Ignore:
Timestamp:
12/01/15 10:59:02 (9 years ago)
Author:
bln4
Message:

When deciding what action to run Actions.java now considers actions with the same parameter list by emphasising some parameter types over others. Integer -> Double -> Float -> String -> All others

Now doesn't try to map in a item if the item for some reason has a null bounding_rect. A error message is displayed if it finds a null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/flowlayout/XGroupItem.java

    r975 r976  
    143143                        // overspill can occur (and is acceptable) when raw-text item spills
    144144                        // out of enclosing shape (such as a rectangle)
    145                         mapInItem(x_raw_item);
     145                        if(x_raw_item.bounding_rect == null) {
     146                                final StringBuilder errorMsg =
     147                                                new StringBuilder("Was about to try mapInItem(XRawItem) but found a null bounding_rect.  Item details: ");
     148                                final String nl = System.getProperty("line.separator");
     149                                errorMsg.append("\t Item parent: "                      + text_item.getParent() + nl);
     150                                errorMsg.append("\t Item position: "            + text_item.getPosition() + nl);
     151                                errorMsg.append("\t Item text content: "        + text_item.getText() + nl);
     152                                System.err.println(errorMsg.toString());
     153                        }
     154                        else mapInItem(x_raw_item);
    146155                }
    147156
Note: See TracChangeset for help on using the changeset viewer.