[fix] may now create and drag a point in one click.
This commit is contained in:
		
							parent
							
								
									ef3792d9cb
								
							
						
					
					
						commit
						8d439db6e0
					
				@ -409,17 +409,7 @@ public class FreeformFinSetConfig extends FinSetConfig {
 | 
				
			|||||||
				Point2D.Double point = getCoordinates(event);
 | 
									Point2D.Double point = getCoordinates(event);
 | 
				
			||||||
				finset.addPoint(segmentIndex, point);
 | 
									finset.addPoint(segmentIndex, point);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				try {
 | 
					 | 
				
			||||||
				    finset.setPoint(dragIndex, point.x, point.y);
 | 
					 | 
				
			||||||
				dragIndex = segmentIndex;
 | 
									dragIndex = segmentIndex;
 | 
				
			||||||
				    updateFields();
 | 
					 | 
				
			||||||
				    return;
 | 
					 | 
				
			||||||
				} catch (IllegalFinPointException ignore) {
 | 
					 | 
				
			||||||
					// no-op
 | 
					 | 
				
			||||||
				} catch (ArrayIndexOutOfBoundsException ex) {
 | 
					 | 
				
			||||||
				    log.error("bad index while editing fin points!!", ex);
 | 
					 | 
				
			||||||
			    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
				updateFields();
 | 
									updateFields();
 | 
				
			||||||
				return;
 | 
									return;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user