Changeset 666 for XIOS/trunk/src/node/zoom_axis.cpp
- Timestamp:
- 08/24/15 14:53:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/zoom_axis.cpp
r623 r666 25 25 void CZoomAxis::checkValid(CAxis* axisDest) 26 26 { 27 int axisIBegin, axisNi, axis Size;27 int axisIBegin, axisNi, axisGlobalSize; 28 28 int zoom_begin, zoom_end, zoom_size; 29 29 30 axisIBegin = axisDest-> ibegin.getValue();31 axisNi = axisDest->n i.getValue();32 axis Size = axisDest->size.getValue();30 axisIBegin = axisDest->begin.getValue(); 31 axisNi = axisDest->n.getValue(); 32 axisGlobalSize = axisDest->n_glo.getValue(); 33 33 34 34 zoom_begin = (this->zoom_begin.isEmpty()) ? 0 : this->zoom_begin.getValue() ; 35 zoom_size = (this->zoom_size.isEmpty()) ? axis Size : this->zoom_size.getValue() ;36 zoom_end = (this->zoom_end.isEmpty()) ? (axis Size - 1) : this->zoom_end.getValue() ;35 zoom_size = (this->zoom_size.isEmpty()) ? axisGlobalSize : this->zoom_size.getValue() ; 36 zoom_end = (this->zoom_end.isEmpty()) ? (axisGlobalSize - 1) : this->zoom_end.getValue() ; 37 37 38 38 if (this->zoom_begin.isEmpty()) zoom_begin=zoom_end-zoom_size+1; … … 40 40 if (this->zoom_end.isEmpty()) zoom_end=zoom_begin+zoom_size-1; 41 41 42 if ((zoom_begin < 0) || (zoom_begin > axis Size-1) || (zoom_end<0) || (zoom_end>axisSize-1) || (zoom_size<1) || (zoom_size>axisSize) || (zoom_begin>zoom_end))42 if ((zoom_begin < 0) || (zoom_begin > axisGlobalSize-1) || (zoom_end<0) || (zoom_end>axisGlobalSize-1) || (zoom_size<1) || (zoom_size>axisGlobalSize) || (zoom_begin>zoom_end)) 43 43 ERROR("CZoomAxis::checkAttributes(void)", 44 44 << "One or more attributes among <zoom_begin>, <zoom_end>, <zoom_size> of axis transformation [ id = '" << axisDest->getId() << "' , context = '" << CObjectFactory::GetCurrentContextId() << "' ] are not well specified");
Note: See TracChangeset
for help on using the changeset viewer.