if (myIconsMap.count(iconName()) == 1) {
return myIconsMap[iconName()];
}
- char* aEnv = getenv("NewGeomResources");
+ char* aEnv = getenv("NEWGEOM_ROOT_DIR");
if (aEnv != NULL) {
TCollection_AsciiString aFile(aEnv);
+ aFile+=FSEP;
+ aFile+="resources";
aFile += FSEP;
aFile += iconName();
Handle(Image_AlienPixMap) aPixMap = new Image_AlienPixMap();
myIconsMap[iconName()] = aPixMap;
return aPixMap;
}
- } else {
- static const char aMsg[] = "Error! NewGeomResources environment variable is not defined: constraint images are not found";
- cout<<aMsg<<endl;
- Events_Error::send(aMsg);
- myIconsMap[iconName()] = Handle(Image_AlienPixMap)();
}
+ static const char aMsg[] = "Error! constraint images are not found";
+ cout<<aMsg<<endl;
+ Events_Error::send(aMsg);
+ myIconsMap[iconName()] = Handle(Image_AlienPixMap)();
return Handle(Image_AlienPixMap)();
}