add missing xml closers, add fix for folder bug, add roundoff fixups
[goodguy/history.git] / cinelerra-5.1 / cinelerra / indexstate.C
index 3204c6841324fe25f6fe403d2f04d946d5bf8fe2..f4c0a9a44a47f6f619148018963e728ae4132481 100644 (file)
@@ -158,9 +158,14 @@ void IndexState::write_xml(FileXML *file)
                file->tag.set_title("OFFSET");
                file->tag.set_property("FLOAT", index_entries[i]->offset);
                file->append_tag();
+               file->tag.set_title("/OFFSET");
+               file->append_tag();
                file->tag.set_title("SIZE");
                file->tag.set_property("FLOAT", index_entries[i]->size);
                file->append_tag();
+               file->tag.set_title("/SIZE");
+               file->append_tag();
+               file->append_newline();
        }
 
        file->append_newline();
@@ -238,7 +243,6 @@ int IndexState::write_index(const char *index_path, Asset *asset, int64_t zoom,
        }
 
        fclose(fp);
-       reset_index();
        return 0;
 }