Fix of some warnings

This commit is contained in:
YuSanka 2021-05-18 12:58:14 +02:00
parent 6c47b15834
commit 1256aebd88
3 changed files with 5 additions and 4 deletions

View file

@ -675,7 +675,7 @@ void Preview::update_layers_slider(const std::vector<double>& layers_z, bool kee
if (cur_area != bottom_area && fabs(cur_area - bottom_area) > scale_(scale_(1)))
break;
}
if (i < size_t(0.3 * num_layers))
if (i < int(0.3 * num_layers))
continue;
// bottom layer have to be a biggest, so control relation between bottom layer and object size