Ignore:
Timestamp:
08/27/08 09:18:49 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

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

    r278 r282  
    107107         *
    108108         */
    109         public static void DeleteFrame() {
    110                 Frame toDelete = DisplayIO.getCurrentFrame();
     109        public static void DeleteFrame(Frame toDelete) {
    111110                String deletedFrame = toDelete.getName();
    112111                String deletedFrameNameLowercase = deletedFrame.toLowerCase();
     
    770769        public static void importFiles(Item item) {
    771770                List<File> files = new LinkedList<File>();
    772                 for (String s : item.getText().split("\n")) {
    773                         File file = new File(s);
     771                for (String s : item.getText().split("\\s+")) {
     772                        File file = new File(s.trim());
    774773                        if (file.exists()) {
    775774                                files.add(file);
     
    784783
    785784        public static void importFile(Item item) {
    786                 File file = new File(item.getText());
     785                File file = new File(item.getText().trim());
    787786                if (file.exists()) {
    788787                        try {
     
    810809                double curAngle = 0;
    811810                double size = 50F;
    812                 if (item instanceof Dot && item.getLines().size() > 0) {
     811                if (item.isLineEnd() && item.getLines().size() > 0) {
    813812                        item = item.getLines().get(0);
    814813                }
Note: See TracChangeset for help on using the changeset viewer.