Merge "Compute min/max value if min/max is not defined." into devel/master