Changeset 5723


Ignore:
Timestamp:
12/01/09 10:14:24 (10 years ago)
Author:
curtis
Message:

Avoid invalid memory access error on some systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/native/itk-plugin/itkBioFormatsImageIO.cxx

    r5682 r5723  
    246246 
    247247      // get physical resolution 
    248       MetadataRetrieve retrieve = MetadataTools::asRetrieve(omeMeta); 
    249       double physX = retrieve.getDimensionsPhysicalSizeX(0, 0).doubleValue(); 
    250       double physY = retrieve.getDimensionsPhysicalSizeY(0, 0).doubleValue(); 
     248      double physX = 1, physY = 1; 
     249      // CTR - avoid invalid memory access error on some systems (OS X 10.5) 
     250      //MetadataRetrieve retrieve = MetadataTools::asRetrieve(omeMeta); 
     251      //physX = retrieve.getDimensionsPhysicalSizeX(0, 0).doubleValue(); 
     252      //physY = retrieve.getDimensionsPhysicalSizeY(0, 0).doubleValue(); 
    251253      m_Spacing[0] = physX; 
    252254      m_Spacing[1] = physY; 
Note: See TracChangeset for help on using the changeset viewer.