From 5b83cdb6420d3727e3d547671e4ec87b48f52a7e Mon Sep 17 00:00:00 2001 From: ika Date: Mon, 21 Aug 2017 15:22:39 +0300 Subject: [PATCH] 0028332: Unstable tests in group gdt export Add initialization of variable GDTMode in STEP writer. --- src/STEPCAFControl/STEPCAFControl_Writer.cxx | 20 +++++++++++--------- src/STEPCAFControl/STEPCAFControl_Writer.hxx | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/STEPCAFControl/STEPCAFControl_Writer.cxx b/src/STEPCAFControl/STEPCAFControl_Writer.cxx index 21133dcdfa..270e98b807 100644 --- a/src/STEPCAFControl/STEPCAFControl_Writer.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Writer.cxx @@ -275,7 +275,7 @@ STEPCAFControl_Writer::STEPCAFControl_Writer () : myLayerMode( Standard_True ), myPropsMode( Standard_True ), mySHUOMode ( Standard_True ), - myDGTMode ( Standard_True ), + myGDTMode ( Standard_True ), myMatMode ( Standard_True ) { STEPCAFControl_Controller::Init(); @@ -290,15 +290,17 @@ STEPCAFControl_Writer::STEPCAFControl_Writer () : //======================================================================= STEPCAFControl_Writer::STEPCAFControl_Writer (const Handle(XSControl_WorkSession)& WS, - const Standard_Boolean scratch) + const Standard_Boolean scratch) : + myColorMode(Standard_True), + myNameMode(Standard_True), + myLayerMode(Standard_True), + myPropsMode(Standard_True), + mySHUOMode(Standard_True), + myGDTMode(Standard_True), + myMatMode(Standard_True) { STEPCAFControl_Controller::Init(); Init ( WS, scratch ); - myColorMode = Standard_True; - myNameMode = Standard_True; - myLayerMode = Standard_True; - myPropsMode = Standard_True; - mySHUOMode = Standard_True; } @@ -4269,7 +4271,7 @@ Standard_Boolean STEPCAFControl_Writer::GetSHUOMode () const void STEPCAFControl_Writer::SetDimTolMode(const Standard_Boolean dimtolmode) { - myDGTMode = dimtolmode; + myGDTMode = dimtolmode; } @@ -4280,7 +4282,7 @@ void STEPCAFControl_Writer::SetDimTolMode(const Standard_Boolean dimtolmode) Standard_Boolean STEPCAFControl_Writer::GetDimTolMode() const { - return myDGTMode; + return myGDTMode; } diff --git a/src/STEPCAFControl/STEPCAFControl_Writer.hxx b/src/STEPCAFControl/STEPCAFControl_Writer.hxx index 34fcc83485..67ff328a34 100644 --- a/src/STEPCAFControl/STEPCAFControl_Writer.hxx +++ b/src/STEPCAFControl/STEPCAFControl_Writer.hxx @@ -231,7 +231,7 @@ private: Standard_Boolean myPropsMode; Standard_Boolean mySHUOMode; MoniTool_DataMapOfShapeTransient myMapCompMDGPR; - Standard_Boolean myDGTMode; + Standard_Boolean myGDTMode; Standard_Boolean myMatMode; NCollection_Vector myGDTAnnotations; Handle(StepVisual_DraughtingModel) myGDTPresentationDM;