Changeset 270


Ignore:
Timestamp:
08/22/08 14:42:58 (16 years ago)
Author:
ra33
Message:
 
Location:
trunk/src/org/expeditee
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Misc.java

    r253 r270  
    790790                        MessageBay.errorMessage("Shapes must have at least 3 sides");
    791791                }
    792                 double angle = ((sides - 2) * 180.0F) / sides;
     792                double angle = 180 - ((sides - 2) * 180.0F) / sides;
    793793                double curAngle = 0;
    794794                double size = 50F;
  • trunk/src/org/expeditee/importer/FrameDNDTransferHandler.java

    r253 r270  
    254254                        Item lastItem = importFile(fileToImport, currentPoint);
    255255
    256                         currentPoint.y += lastItem.getBoundsHeight();
     256                        if (lastItem == null) {
     257                                currentPoint.y += 30;
     258                        } else {
     259                                currentPoint.y += lastItem.getBoundsHeight();
     260                        }
    257261                        // of the item that was created
    258262
    259263                        // TODO: Better placement strategy
    260                         //if (currentPoint.y > (Browser._theBrowser.getHeight() - 20))
    261                         //      currentPoint.y = Browser._theBrowser.getHeight() - 20;
     264                        // if (currentPoint.y > (Browser._theBrowser.getHeight() - 20))
     265                        // currentPoint.y = Browser._theBrowser.getHeight() - 20;
    262266                }
    263267        }
  • trunk/src/org/expeditee/simple/Primitives.java

    r202 r270  
    3232                        v.setValue(newValue);
    3333                } catch (Exception e) {
    34                         // If the first variable doesnt exist then add it
    35                         add(variableName, newValue);
     34                        try{
     35                                add(variableName, newValue);
     36                        }catch(IncorrectTypeException ite){
     37                                throw ite;
     38                        }catch(Exception ex){
     39                                //DO NOTHING... THIS SHOULD NOT HAPPEN
     40                                //But the ANT builder is complaining
     41                                ex.printStackTrace();
     42                        }
    3643                }
    3744        }
  • trunk/src/org/expeditee/simple/Variables.java

    r121 r270  
    6262                        return;
    6363                }
     64                //TODO:figure out how to fix the ANT build error
    6465                toSet.setValue(toGetValueFrom);
    6566        }
Note: See TracChangeset for help on using the changeset viewer.