const XCAFPrs_DocumentExplorerFlags theFlags,
const XCAFPrs_Style& theDefStyle)
{
- if ((theFlags & XCAFPrs_DocumentExplorerFlags_NoStyle) != 0)
+ if ((theFlags & XCAFPrs_DocumentExplorerFlags_NoStyle) == 0)
{
myColorTool = XCAFDoc_DocumentTool::ColorTool (theDocument->Main());
}
myColorTool.Nullify();
}
- ///myColorTool = theColorTool;
myDefStyle = theDefStyle;
myRoots = theRoots;
myRootIter = TDF_LabelSequence::Iterator (myRoots);
if (aRootLab.IsNull())
{
// assert - invalid input
- //Standard_ProgramError::Raise ("CadDocumentExplorer - NULL label in the input");
+ //Standard_ProgramError::Raise ("XCAFPrs_DocumentExplorer - NULL label in the input");
myRootIter.Next();
continue;
}
{
if (myTop < 0)
{
- Standard_ProgramError::Raise ("CadDocumentExplorer - internal error");
+ Standard_ProgramError::Raise ("XCAFPrs_DocumentExplorer - internal error");
}
myCurrent = myNodeStack.Value (myTop);
}
{
if (!myHasMore)
{
- Standard_ProgramError::Raise ("CadDocumentExplorer::Next() - out of range");
+ Standard_ProgramError::Raise ("XCAFPrs_DocumentExplorer::Next() - out of range");
return; // assert
}