Index: /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c	(revision 38588)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c	(revision 38589)
@@ -271,6 +271,9 @@
 	}
 
-	// read Measure table data : format is irrelevant here */
-	if (!gfits_fread_ftable_data (cpmFile, &cpmFtable, TRUE)) { 
+	char nativeOrder;
+	Catalog catalog;
+	dvo_catalog_init (&catalog);
+	catalog.f = cpmFile;
+	if (!gfits_fread_uncompressed (&catalog, &cpmFtable, &nativeOrder, TRUE)) {
 	  myAbort("can't read data for cpm table");
 	}
@@ -289,5 +292,5 @@
 	// NOTE: FtableToMeasure (and equivalent) free the data associated with cpmFtable.
 	// We are left with the data in measure.
-	measure = FtableToMeasure (&cpmFtable, NULL, &Nmeasure, &catformat, FALSE);
+	measure = FtableToMeasure (&cpmFtable, NULL, &Nmeasure, &catformat, nativeOrder);
 	myAssert(measure, "failed to convert ftable to measure data");
     
