From 8307dc815e394de2921cbaae5f2abc7549e08d6b Mon Sep 17 00:00:00 2001
From: valerio <valerio@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Mon, 19 Apr 2010 13:55:22 +0000
Subject: [PATCH] Fixed reading of pixel sampling from MRC/CCP4 maps

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2048 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/io/src/img/map_io_mrc_handler.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/io/src/img/map_io_mrc_handler.cc b/modules/io/src/img/map_io_mrc_handler.cc
index 077b1057d..d5ccdb9fd 100644
--- a/modules/io/src/img/map_io_mrc_handler.cc
+++ b/modules/io/src/img/map_io_mrc_handler.cc
@@ -808,7 +808,6 @@ void import_helper(img::MapHandle& image, std::istream& in,const MRC& formatmrc)
       LOG_MESSAGE("Suspicious dell dimensions found. Cannot set sampling.");
     }
     LOG_MESSAGE("resulting image extent: " << image.GetExtent() << std::endl);
-    image.Reset(img::Extent(mstart,msize),img::REAL,img::SPATIAL);
     if(img::image_state::RealSpatialImageState *rs=dynamic_cast<img::image_state::RealSpatialImageState*>(image.ImageStatePtr().get())) {
       if(header.mode==0) {
         detail::real_filler<uchar,CONVERSIONTYPE>(*rs,f,header);
-- 
GitLab