1 |
/* |
/* |
2 |
* Copyright (C) 2006-2019 Andreas Persson |
* Copyright (C) 2006-2020 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
823 |
|
|
824 |
std::map<gig::dimension_t, std::set<int> >::const_iterator itSelectedDimension = |
std::map<gig::dimension_t, std::set<int> >::const_iterator itSelectedDimension = |
825 |
this->dimzones.find(it->first); |
this->dimzones.find(it->first); |
826 |
if (itSelectedDimension != this->dimzones.end() && |
if (itSelectedDimension != this->dimzones.end()) { |
827 |
itSelectedDimension->second.count(it->second)) continue; // is selected |
if (itSelectedDimension->second.count(it->second)) |
828 |
|
continue; // is selected |
829 |
|
// special case: no selection of dimzone yet; assume zone 0 |
830 |
|
// being selected in this case |
831 |
|
// |
832 |
|
// (this is more or less a workaround for a bug, that is when |
833 |
|
// no explicit dimregion case had been selected [ever] by user |
834 |
|
// by clicking on some dimregionchooser zone yet, then the |
835 |
|
// individual dimension entries of this->dimzones are empty) |
836 |
|
if (itSelectedDimension->second.empty() && it->second == 0) |
837 |
|
continue; // is selected |
838 |
|
} |
839 |
|
|
840 |
goto notSelected; |
goto notSelected; |
841 |
} |
} |