Skip to content

Commit e2f0903

Browse files
committed
Fix for corrections after removing structural elements from view menus #41 #90
1 parent 65e21b2 commit e2f0903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flat/style/flat.viewer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
299299
} else {
300300
e = annotations[new_id];
301301
}
302-
if (viewannotations[e.type+"/"+e.set]) {
302+
if ((correction.structural) || (viewannotations[e.type+"/"+e.set])) {
303303
s = s + "<tr><th>New";
304304
if (addlabels) {
305305
s = s + " " + folia_label(e.type, e.set);
@@ -323,7 +323,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
323323
} else {
324324
e = annotations[current_id];
325325
}
326-
if (viewannotations[e.type+"/"+e.set]) {
326+
if ((correction.structural) || (viewannotations[e.type+"/"+e.set])) {
327327
s = s + "<tr><th>Current";
328328
if (addlabels) {
329329
s = s + " " + folia_label(e.type, e.set);
@@ -348,7 +348,7 @@ function rendercorrection(correctionid, addlabels, explicitnew) {
348348
} else {
349349
original = annotations[original_id];
350350
}
351-
if (viewannotations[original.type+"/"+original.set]) {
351+
if ((correction.structural) || (viewannotations[original.type+"/"+original.set])) {
352352
s = s + "<tr><th>Original";
353353
if (addlabels) {
354354
s = s + " " + folia_label(original.type, original.set);

0 commit comments

Comments
 (0)