Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 77f4265e

Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)

Fixed export

Zobrazit rozdíly:

Backend/Core/ZipUtils/Export.cs
16 16
            Dictionary<Annotation, List<AnnotationTag>> annotationTags, Dictionary<FinalAnnotation, List<FinalAnnotationTag>> finalAnnotationTags)
17 17
        {
18 18
            MemoryStream ms = new MemoryStream();
19
            var archive = new ZipArchive(ms);
19
            var archive = new ZipArchive(ms, ZipArchiveMode.Create);
20 20

  
21 21
            for (int docIndex = 0; docIndex < documents.Count; docIndex++)
22 22
            {
......
43 43
                CreateFile(documentDir + "/final.json", finalAnnotationInfoJson, archive);
44 44
            }
45 45

  
46
            archive.Dispose();
46
            //archive.Dispose();
47 47
            ms.Position = 0;
48

  
49 48
            return ms;
50 49
        }
51 50

  

Také k dispozici: Unified diff