Changeset 1109 for trunk/src/org/expeditee/importer/ImageImporter.java
- Timestamp:
- 09/05/18 14:29:09 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/importer/ImageImporter.java
r1102 r1109 21 21 import java.io.File; 22 22 import java.io.IOException; 23 import java.nio.file.Path; 24 import java.nio.file.Paths; 23 25 import java.util.Collection; 24 26 import java.util.HashSet; … … 30 32 import org.expeditee.gio.gesture.StandardGestureActions; 31 33 import org.expeditee.gui.DisplayController; 34 import org.expeditee.gui.FrameIO; 32 35 import org.expeditee.gui.FrameUtils; 33 36 import org.expeditee.items.Item; … … 83 86 StandardGestureActions.deleteItems(enclosure, false); 84 87 } 85 86 Text source = DragAndDropManager.importString("@i: " + fullPath + size, location); 88 Text source; 89 final Path imagePath = Paths.get(fullPath); 90 final Path imagesPath = Paths.get(FrameIO.IMAGES_PATH); 91 if(imagePath.startsWith(imagesPath)) 92 source = DragAndDropManager.importString("@i: " + imagePath.getFileName() + size, location); 93 else source = DragAndDropManager.importString("@i: " + fullPath + size, location); 87 94 source.setThickness(thickness); 88 95 source.setBorderColor(borderColor);
Note:
See TracChangeset
for help on using the changeset viewer.