mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not crash if no valid points are found when importing a surface .dat file due to i.e. incorrect file format (comma separated, not space separated)
This commit is contained in:
parent
fb5758a363
commit
f411b5fabe
@ -465,6 +465,8 @@ std::pair<std::vector<cvf::Vec3d>, std::vector<unsigned>> RifSurfaceImporter::re
|
||||
}
|
||||
}
|
||||
|
||||
if ( surfacePoints.size() == 0 ) return { {}, {} };
|
||||
|
||||
// Determine axes vectors
|
||||
std::vector<std::pair<cvf::Vec2d, unsigned>> pairs;
|
||||
for ( auto itr = axesVectorCandidatesNum.begin(); itr != axesVectorCandidatesNum.end(); ++itr )
|
||||
|
Loading…
Reference in New Issue
Block a user