/[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 3307 by schoenebeck, Tue Jul 11 23:06:38 2017 UTC revision 3340 by schoenebeck, Mon Jul 31 11:20:18 2017 UTC
# Line 1479  void DimRegionChooser::select_dimzone_by Line 1479  void DimRegionChooser::select_dimzone_by
1479          return;          return;
1480      }      }
1481    
1482      if (maindimcase.empty()) {      // commented out: re-evaluate maindimcase, since it might not been reset from a previous instrument which causes errors if it got different dimension types
1483        //if (maindimcase.empty()) {
1484          maindimcase = dimensionCaseOf(region->pDimensionRegions[maindimregno]);          maindimcase = dimensionCaseOf(region->pDimensionRegions[maindimregno]);
1485          if (maindimcase.empty()) {          if (maindimcase.empty()) {
1486              printf("caseOfDimregion(%d) -> empty\n", maindimregno);              printf("caseOfDimregion(%d) -> empty\n", maindimregno);
1487              return;              return;
1488          }          }
1489      }      //}
1490    
1491      int z = (dir > 0) ? maindimcase[maindimtype] + 1 : maindimcase[maindimtype] - 1;      int z = (dir > 0) ? maindimcase[maindimtype] + 1 : maindimcase[maindimtype] - 1;
1492      if (z < 0) z = 0;      if (z < 0) z = 0;

Legend:
Removed from v.3307  
changed lines
  Added in v.3340

  ViewVC Help
Powered by ViewVC