Resolve comments in PR

This commit is contained in:
Ylva Selling
2022-12-16 16:11:07 -05:00
parent 2b586ec234
commit 8dc9541b5b

View File

@@ -291,15 +291,14 @@ glm::dvec2 WwtCommunicator::equatorialAim() const {
}
void WwtCommunicator::setImageOrder(int i, int order) {
using it = std::deque<std::pair<int, double>>::iterator;
// Find in selected images list
it current = findSelectedImage(i);
auto current = findSelectedImage(i);
int currentIndex = std::distance(_selectedImages.begin(), current);
int difference = order - currentIndex;
std::deque<std::pair<int, double>> newDeque;
for (int i = 0; i < _selectedImages.size(); i++) {
for (int i = 0; i < static_cast<int>(_selectedImages.size()); i++) {
if (i == currentIndex) {
continue;
}