- str << sp[0] << "\\" << sp[1];
- file->InsertValEntry(str.str(),0x0028,0x0030); // Pixel Spacing
+ // We are about to enter floating point value.
+ // By default ostringstream are smart and don't do fixed point
+ // thus forcing to fixed point value
+ str.setf( std::ios::fixed );
+ str << sp[1] << "\\" << sp[0];
+ file->InsertEntryString(str.str(),0x0028,0x0030); // Pixel Spacing