mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
#13801 Fix invalid progress max when reading well logs
The countWellLogs lambda in RimWellPathCollection::loadDataAndUpdate() declared its return type as bool, truncating the well log count to 0 or 1. The progress max was then too low, and loading projects with two or more well logs ran the progress value past max, triggering reportError() in caf::ProgressInfo during regression tests.
This commit is contained in:
1 parent
5b7bdf7bb0
commit
8636180ee5
1 file changed
+1
-1
@@ -226,7 +226,7 @@ bool RimWellPathCollection::loadDataAndUpdate()
|
||||
return false;
|
||||
};
|
||||
|
||||
auto countWellLogs = []( const std::vector<RimWellPath*>& wellPaths ) -> bool
|
||||
auto countWellLogs = []( const std::vector<RimWellPath*>& wellPaths ) -> size_t
|
||||
{
|
||||
size_t count = 0;
|
||||
for ( RimWellPath* wellPath : wellPaths )
|
||||
|
||||
Reference in new issue
Block a user