From 6fa1740529a347c75c9be72cfefc1e4c533a3f94 Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 25 Feb 2016 15:41:32 +0300 Subject: [PATCH] Bug #1337: constraint images are not found --- src/SketcherPrs/SketcherPrs_SymbolPrs.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.39.2