mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
Fix for PAL13607(EDF PAL 313 : Random group colors when unassigned).
This commit is contained in:
parent
14b41fa561
commit
b39db60480
@ -321,7 +321,7 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
|
||||
|
||||
MED::PFamilyInfo anInfo;
|
||||
string aValue = aStr.str();
|
||||
if(myId == 0){
|
||||
if(myId == 0 || myGroupAttributVal == 0){
|
||||
anInfo = theWrapper->CrFamilyInfo(theMeshInfo,
|
||||
aValue,
|
||||
myId,
|
||||
@ -329,8 +329,7 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
|
||||
}else{
|
||||
MED::TStringVector anAttrDescs (1, ""); // 1 attribute with empty description,
|
||||
MED::TIntVector anAttrIds (1, myId); // Id=0,
|
||||
MED::TIntVector anAttrVals (1);
|
||||
anAttrVals[0] = myGroupAttributVal != 0? myGroupAttributVal: myId;
|
||||
MED::TIntVector anAttrVals (1, myGroupAttributVal);
|
||||
anInfo = theWrapper->CrFamilyInfo(theMeshInfo,
|
||||
aValue,
|
||||
myId,
|
||||
|
@ -41,7 +41,7 @@ SMESHDS_GroupBase::SMESHDS_GroupBase (const int theID,
|
||||
const SMESHDS_Mesh* theMesh,
|
||||
const SMDSAbs_ElementType theType):
|
||||
myID(theID), myMesh(theMesh), myType(theType), myStoreName(""),
|
||||
myCurIndex(0), myCurID(-1)
|
||||
myCurIndex(0), myCurID(-1), myColorGroup(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user