Commit b3c532c6 authored by tu's avatar tu
Browse files

fixed speaker ID-bug

parent 7705a4d1
Pipeline #12196 passed with stage
in 4 minutes and 34 seconds
......@@ -1012,6 +1012,7 @@ public class RedeWiedergabeView extends AEditorSubordinateViewPart {
String speakerFeatValue = anno.getFeatureValueAsString(speakerFeat);
speakerFeatValue = anno.getCoveredText();
updateAnnotation(anno, speakerFeat, speakerFeatValue, true);
updateAnnotation(anno, speakerIDFeat, "0", true);
addAnnotation(anno);
for (AnnotationFS frame : frameList)
......@@ -1062,11 +1063,10 @@ public class RedeWiedergabeView extends AEditorSubordinateViewPart {
List<AnnotationFS> speakerSelection = editor.getCurrentSelectionOfType(speakerType);
String concatenatedId = "";
if (speakerSelection != null && speakerSelection.size() > 0)
{
AnnotationFS anno = speakerSelection.get(0);
anno.setFeatureValueFromString(speakerIDFeat, "");
if (anno.getFeatureValueAsString(speakerIDFeat) == null)
{
concatenatedId = selected.getFeatureValueAsString(frameIDFeat);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment