()
| 2355 | } |
| 2356 | |
| 2357 | public void saveRoi() { |
| 2358 | Roi roi2 = roi; |
| 2359 | if (roi2!=null) { |
| 2360 | roi2.endPaste(); |
| 2361 | Rectangle r = roi2.getBounds(); |
| 2362 | if ((r.width>0 || r.height>0)) { |
| 2363 | Roi.setPreviousRoi(roi2); |
| 2364 | if (IJ.debugMode) IJ.log("saveRoi: "+roi2); |
| 2365 | } |
| 2366 | if ((roi2 instanceof PointRoi) && ((PointRoi)roi2).promptBeforeDeleting()) { |
| 2367 | PointRoi.savedPoints = (PointRoi)roi2.clone(); |
| 2368 | if (IJ.debugMode) IJ.log("saveRoi: saving multi-point selection"); |
| 2369 | } |
| 2370 | } |
| 2371 | } |
| 2372 | |
| 2373 | public void restoreRoi() { |
| 2374 | if (Toolbar.getToolId()==Toolbar.POINT && PointRoi.savedPoints!=null) { |
no test coverage detected