Changeset 2114


Ignore:
Timestamp:
01/17/07 13:51:38 (13 years ago)
Author:
sorber
Message:

Fixed bug caused by zero-area boxes and ovals. Zero-area OverlayBox's and OverlayOval's now automatically padded.

Location:
trunk/loci/visbio/overlays
Files:
2 edited

Legend:

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

    r2024 r2114  
    5252  /** Gets VisAD data object representing this overlay. */ 
    5353  public DataImpl getData() { 
     54    if (x1 == x2 || y1 == y2) return null; // don't try to render a zero-area box 
    5455    RealTupleType domain = overlay.getDomainType(); 
    5556    TupleType range = overlay.getRangeType(); 
  • trunk/loci/visbio/overlays/OverlayOval.java

    r2024 r2114  
    8484  /** Gets VisAD data object representing this overlay. */ 
    8585  public DataImpl getData() { 
     86    if (x1 == x2 || y1 == y2) return null; // don't try to render a zero-area ellipse 
    8687    RealTupleType domain = overlay.getDomainType(); 
    8788    TupleType range = overlay.getRangeType(); 
Note: See TracChangeset for help on using the changeset viewer.