Skip to content

Commit 1419b99

Browse files
committed
Fix WriteMatrix
1 parent 7c7de32 commit 1419b99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Modules/DataIO/WriteMatrix.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,12 @@ bool WriteMatrixModule::useCustomExporter(const std::string& filename) const
111111

112112
return !(ft == "" ||
113113
ft == "SCIRun Matrix Binary" ||
114-
ft == "SCIRun Matrix ASCII");
114+
ft == "SCIRun Matrix ASCII" ||
115+
ft == defaultFileTypeName());
115116
}
116117

117118
std::string WriteMatrixModule::defaultFileTypeName() const
118119
{
119120
MatrixIEPluginManager mgr;
120-
return defaultImportTypeForFile(&mgr);
121+
return defaultExportTypeForFile(&mgr);
121122
}

0 commit comments

Comments
 (0)