fix typo: 'layer height' instead of 'first layer height'

supermerill/SuperSlicer#2060
This commit is contained in:
supermerill 2021-12-15 18:54:15 +01:00
parent b1e044855e
commit 497736affe

View File

@ -1633,7 +1633,7 @@ std::pair<PrintBase::PrintValidationError, std::string> Print::validate() const
//check not-first layer
if (object->region_volumes[region_id].front().first.second > layer_height) {
if (layer_height + EPSILON < min_layer_height)
return { PrintBase::PrintValidationError::pveWrongSettings, (boost::format(L("First layer height can't be higher than %s")) % "min layer height").str() };
return { PrintBase::PrintValidationError::pveWrongSettings, (boost::format(L("Layer height can't be higher than %s")) % "min layer height").str() };
for (auto tuple : std::vector<std::pair<double, const char*>>{
{nozzle_diameter, "nozzle diameter"},
{max_layer_height, "max layer height"},