Cleaned up a pointless statement warning.

This commit is contained in:
Joseph Lenox 2018-05-12 13:38:09 -05:00 committed by Joseph Lenox
parent 87dadc9815
commit 73ee990e45

View File

@ -409,7 +409,7 @@ void Plater::on_model_change(bool force_autocenter) {
ObjRef Plater::selected_object() { ObjRef Plater::selected_object() {
Slic3r::Log::info(LogChannel, L"Calling selected_object()"); Slic3r::Log::info(LogChannel, L"Calling selected_object()");
auto it {this->objects.begin()}; auto it {this->objects.begin()};
for (it; it != this->objects.end(); it++) for (; it != this->objects.end(); it++)
if (it->selected) return it; if (it->selected) return it;
Slic3r::Log::info(LogChannel, L"No object selected."); Slic3r::Log::info(LogChannel, L"No object selected.");
return this->objects.end(); return this->objects.end();