You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2009/06/17 09:37:18 UTC

svn commit: r785493 - /incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java

Author: joern
Date: Wed Jun 17 07:37:18 2009
New Revision: 785493

URL: http://svn.apache.org/viewvc?rev=785493&view=rev
Log:
UIMA-1386 Fixed of by one error and removed commented code

Modified:
    incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java

Modified: incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java?rev=785493&r1=785492&r2=785493&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-ep-cas-editor/src/main/java/org/apache/uima/caseditor/editor/annotation/BackgroundDrawingStrategy.java Wed Jun 17 07:37:18 2009
@@ -50,22 +50,7 @@
         gc.fillRectangle(bounds);
 
         int start = offset;
-        int end = offset + length;
-
-
-//        Point selection = textWidget.getSelection();
-//        boolean isPartOfAnnotationSelected = selection.x < end && start < selection.y &&
-//            selection.y - selection.x > 0;
-//        if (isPartOfAnnotationSelected) {
-//
-//          int startInAnnotation = selection.x < start ? start : selection.x;
-//          int endInAnnotation = selection.y < end ? selection.y : end;
-//
-//          Rectangle boundsInAnnotation = textWidget.getTextBounds(startInAnnotation, endInAnnotation);
-//
-//          gc.setBackground(new Color(gc.getDevice(), 100, 100, 100));
-//          gc.fillRectangle(boundsInAnnotation);
-//        }
+        int end = offset + length - 1;
 
         gc.setForeground(new Color(gc.getDevice(), 0, 0, 0));
 
@@ -75,4 +60,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}