X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_CustomPrs.cpp;h=c074a841e4ab3af76f0b33dee705234510d38f74;hb=6f77dfcd9833cdba0c583e6218350f1f7043eb8b;hp=8584bc554ca1d3f2a6ae8daf7a7759a352bbc13a;hpb=247fc0bd6c6e04ce1f7a6e67f8d3c80ce17acab0;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_CustomPrs.cpp b/src/XGUI/XGUI_CustomPrs.cpp index 8584bc554..c074a841e 100644 --- a/src/XGUI/XGUI_CustomPrs.cpp +++ b/src/XGUI/XGUI_CustomPrs.cpp @@ -9,6 +9,8 @@ #include #include +#include + #include @@ -37,9 +39,12 @@ void getDefaultColor(ResultPtr theResult, AISObjectPtr thePrs, std::vector& theColor = Config_PropManager::color(aSection, aName, aDefault); } } - if (theColor.empty()) // all AIS objects, where the color is not set, a white. + if (theColor.empty()) { + // all AIS objects, where the color is not set, are in black. // The color should be defined in XML or set in the attribute - theColor = Config_PropManager::color("Visualization", "object_default_color", "#ffffff"); + theColor = Config_PropManager::color("Visualization", "object_default_color", "#000000"); + Events_Error::send("A default color is not defined in the preferences for this kind of result"); + } } bool XGUI_CustomPrs::customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,