From: dbv Date: Thu, 25 Feb 2016 12:41:32 +0000 (+0300) Subject: Bug #1337: constraint images are not found X-Git-Tag: V_2.2.0~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fa1740529a347c75c9be72cfefc1e4c533a3f94;p=modules%2Fshaper.git Bug #1337: constraint images are not found --- diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index d2daecc45..2d42f57a5 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -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();