#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:
Kristian Bendiksen committed 2026-06-12 16:30:10 +02:00
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 )