]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug #1337: constraint images are not found
authordbv <dbv@opencascade.com>
Thu, 25 Feb 2016 12:41:32 +0000 (15:41 +0300)
committerdbv <dbv@opencascade.com>
Thu, 25 Feb 2016 12:41:32 +0000 (15:41 +0300)
src/SketcherPrs/SketcherPrs_SymbolPrs.cpp

index d2daecc45a4bd60128007cd9d2b2f6d033f2154b..2d42f57a568f39160cb31d29760ed9d5137c4458 100644 (file)
@@ -271,11 +271,9 @@ Handle(Image_AlienPixMap) SketcherPrs_SymbolPrs::icon()
     return myIconsMap[iconName()];
   }
   // Load icon for the presentation
-  char* aEnv = getenv("SHAPER_ROOT_DIR");
+  char* aEnv = getenv("SHAPERResources");
   if (aEnv != NULL) {
     TCollection_AsciiString aFile(aEnv);
-    aFile+=FSEP;
-    aFile+="resources";
     aFile += FSEP;
     aFile += iconName();
     Handle(Image_AlienPixMap) aPixMap = new Image_AlienPixMap();