switched order in loaded image selection

This commit is contained in:
fourtf 2019-08-21 02:21:12 +02:00
parent e140905faf
commit d709b98331

View file

@ -92,14 +92,14 @@ const ImagePtr &ImageSet::getImageOrLoaded(float scale) const
// prefer other image if selected image is not loaded yet
if (result->loaded())
return result;
else if (this->imageX1_->loaded())
return this->imageX1_;
else if (this->imageX2_ && !this->imageX2_->isEmpty() &&
this->imageX2_->loaded())
return this->imageX2_;
else if (this->imageX3_ && !this->imageX3_->isEmpty() &&
this->imageX3_->loaded())
return this->imageX3_;
else if (this->imageX2_ && !this->imageX2_->isEmpty() &&
this->imageX2_->loaded())
return this->imageX2_;
else if (this->imageX1_->loaded())
return this->imageX1_;
else
return result;
}