r19916 by fschmid - Detect .svm files from binary data.

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 14 07:20:05 UTC 2015


Author: fschmid
Date: Sat Mar 14 07:20:05 2015
New Revision: 19916

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19916
Log:
Detect .svm files from binary data.

Modified:
    trunk/Scribus/scribus/util_formats.cpp

Modified: trunk/Scribus/scribus/util_formats.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19916&path=/trunk/Scribus/scribus/util_formats.cpp
==============================================================================
--- trunk/Scribus/scribus/util_formats.cpp (original)
+++ trunk/Scribus/scribus/util_formats.cpp Sat Mar 14 07:20:05 2015
@@ -403,6 +403,8 @@
 				ret = "tif";
 			else if ((buf[0] == '/') && (buf[1] == '*') && (buf[2] == ' ') && (buf[3] == 'X') && (buf[4] == 'P') && (buf[5] == 'M'))
 				ret = "xpm";
+			else if ((buf[0] == 'V') && (buf[1] == 'C') && (buf[2] == 'L') && (buf[3] == 'M') && (buf[4] == 'T') && (buf[5] == 'F'))
+				ret = "svm";
 
 			f.close();
 		}




More information about the scribus-commit mailing list