Revision: 17161
          http://sourceforge.net/p/gate/code/17161
Author:   markagreenwood
Date:     2013-12-06 13:44:31 +0000 (Fri, 06 Dec 2013)
Log Message:
-----------
copy the featuremap rather than reusing so that the new annotations are 
distinct and not linked to the old ones

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/docview/AnnotationStackView.java

Modified: gate/trunk/src/main/gate/gui/docview/AnnotationStackView.java
===================================================================
--- gate/trunk/src/main/gate/gui/docview/AnnotationStackView.java       
2013-12-03 18:32:50 UTC (rev 17160)
+++ gate/trunk/src/main/gate/gui/docview/AnnotationStackView.java       
2013-12-06 13:44:31 UTC (rev 17161)
@@ -476,11 +476,13 @@
         }
         // copy the annotation to the target annotation set
         try {
+          FeatureMap params = Factory.newFeatureMap();
+          params.putAll(annotation.getFeatures());
           document.getAnnotations(targetSetName).add(
             annotation.getStartNode().getOffset(),
             annotation.getEndNode().getOffset(),
             annotation.getType(),
-            annotation.getFeatures());
+            params);
         } catch (InvalidOffsetException e) {
           e.printStackTrace();
         }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to