Changeset 2282


Ignore:
Timestamp:
02/15/07 14:11:43 (13 years ago)
Author:
sorber
Message:

Fixed bug which allowed multiple freeforms to become selected as each was edited.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/overlays/FreeformTool.java

    r2259 r2282  
    180180      } 
    181181    } 
    182     else { 
     182    else { // no freeform was sufficiently close 
    183183      if (!ctl) { 
    184         deselectAll(); 
    185184        // record initial coordinates of freeform 
    186185        downX = dx; 
     
    598597    mode = newMode; 
    599598 
     599     
    600600    if (mode == INIT) { 
    601601    } 
    602602    else if (mode == DRAW) { 
     603      deselectAll(); 
    603604      freeform.setDrawing(true); 
    604605      freeform.setSelected(true); 
     
    613614    } 
    614615    else if (mode == EDIT) { 
     616      deselectAll(); 
    615617      freeform.setDrawing(true); 
    616618      freeform.setSelected(true); 
     
    618620    } 
    619621    else if (mode == ERASE) { 
     622      deselectAll(); 
    620623      freeform.setDrawing(true); 
    621624      freeform.setSelected(true); 
     
    631634          freeform.computeGridParameters(); 
    632635          freeform.setDrawing(false); 
     636          freeform.setSelected(true); 
    633637          freeform = null; 
    634638        } 
Note: See TracChangeset for help on using the changeset viewer.