Skip to content

Commit 51e7c92

Browse files
committed
OcdFileExport: Fix list of template extensions
Amends 4f39f59. Fixes a sub-issue of GH-1656: PNG templates not exported. Note that FileFormatTest now fails (crashes), due to the another bug which is the main issue of GH-1656.
1 parent ae1236d commit 51e7c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fileformats/ocd_file_export.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ void OcdFileExport::exportTemplates(OcdFile<Format>& /*file*/)
26322632
void OcdFileExport::exportTemplates()
26332633
{
26342634
static auto const supported_extensions = std::array<const char* const, 8>{{
2635-
"bmp", "gif", "jpg", "jpeg", "ocd", "pdf", "tif", "tiff"
2635+
"bmp", "gif", "jpg", "jpeg", "ocd", "png", "tif", "tiff"
26362636
}};
26372637

26382638
for (int i = map->getNumTemplates() - 1; i >= 0; --i)

0 commit comments

Comments
 (0)