int aCols = aTablesAttr->columns();
QList<double> aFieldStepData;
- for (int j = 0; j < aCols; j++) {
- for (int k = 1; k < aRows; k++) { // Do not use default values
+ for (int k = 1; k < aRows; k++) { // Do not use default values
+ for (int j = 0; j < aCols; j++) {
ModelAPI_AttributeTables::Value aVal = aTablesAttr->value(k, j, aStep);
switch (aType) {
case ModelAPI_AttributeTables::DOUBLE:
TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
double aValue = aShapeData.at(i);
Quantity_Color aColor;
- if (AIS_ColorScale::FindColor(aValue, 0., 1. + Precision::Confusion(), 2, aColor))
+ if (AIS_ColorScale::FindColor(aValue, 0., 1., 2, aColor))
SetCustomColor(aShape, aColor);
}
}
int aRows = aTablesAttr->rows();
int aCols = aTablesAttr->columns();
QList<int> aFieldStepData;
- for (int j = 0; j < aCols; j++) {
- for (int k = 1; k < aRows; k++) { // Do not use default values
+ for (int k = 1; k < aRows; k++) { // Do not use default values
+ for (int j = 0; j < aCols; j++) {
ModelAPI_AttributeTables::Value aVal = aTablesAttr->value(k, j, aStep);
aFieldStepData << (aVal.myBool ? 1 : 0);
}