Skip to content

Commit

Permalink
#47: back off experiment
Browse files Browse the repository at this point in the history
to see if annotation could point to data from outside the plot.
  • Loading branch information
jbfaden committed Apr 29, 2023
1 parent 0e70c37 commit 34e7483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dasCore/src/org/das2/graph/DasAnnotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ public void paintComponent(Graphics g1) {

g.translate( -getX(), -getY() );

if ( plot!=null ) {
if ( anchorType!=AnchorType.CANVAS && plot!=null ) {
Rectangle r= DasDevicePosition.toRectangle( plot.getRow(), plot.getColumn() );
g.setClip( r );
}
Expand Down

0 comments on commit 34e7483

Please sign in to comment.