fix: Convert old notebook format only once

This commit is contained in:
1ambda 2017-04-17 17:08:41 +09:00
parent f32651e519
commit 4e77c0a8b8

View file

@ -414,6 +414,10 @@ public class Notebook implements NoteEventListener {
public void convertFromSingleResultToMultipleResultsFormat(Note note) {
for (Paragraph p : note.paragraphs) {
Object ret = p.getPreviousResultFormat();
if (ret != null && p.results != null) {
continue; // already converted
}
try {
if (ret != null && ret instanceof Map) {
Map r = ((Map) ret);