/[svn]/gigedit/trunk/src/gigedit/dimregionchooser.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/dimregionchooser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3702 by persson, Sat Feb 2 07:48:50 2019 UTC revision 3703 by schoenebeck, Wed Jan 8 15:49:24 2020 UTC
# Line 1  Line 1 
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
# Line 823  void DimRegionChooser::get_dimregions(co Line 823  void DimRegionChooser::get_dimregions(co
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          }          }

Legend:
Removed from v.3702  
changed lines
  Added in v.3703

  ViewVC Help
Powered by ViewVC