]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
tiny things
authorrnc <rnc@opencascade.com>
Wed, 11 Jul 2012 15:52:57 +0000 (15:52 +0000)
committerrnc <rnc@opencascade.com>
Wed, 11 Jul 2012 15:52:57 +0000 (15:52 +0000)
src/EntityGUI/EntityGUI_3DSketcherDlg.cxx

index 771e17507cd83d4f51d0a90706c082c3b3b51cb4..3b6d41899174c76b26e3dcb8df8abaea3e1d76bf 100755 (executable)
@@ -136,6 +136,7 @@ EntityGUI_3DSketcherDlg::EntityGUI_3DSketcherDlg( GeometryGUI* theGeometryGUI, Q
   GroupAngles->buttonApply->setText( tr( "GEOM_SKETCHER_APPLY" ) );
   GroupAngles->buttonUndo->setIcon( image1 );
   GroupAngles->buttonRedo->setIcon( image2 );
+  GroupAngles->checkBox->setText( tr( "Angle 2" ) ); //TODO translation
   layout->setMargin( 0 ); layout->setSpacing( 6 );
   layout->addWidget( GroupType );
   layout->addWidget( Group3Spin );
@@ -784,7 +785,7 @@ void EntityGUI_3DSketcherDlg::displayTrihedron(int selMode)
 //================================================================
 void EntityGUI_3DSketcherDlg::displayAngle(double theAngle1, double theAngle2, double theLength, int theOrientation)
 {
-  if(Abs(theAngle2 - 90.0) < Precision::Confusion())
+  if(Abs(theAngle2 - 90.0) < Precision::Angular())
     return;
   // Add trihedron to preview
   SUIT_ViewWindow* vw = SUIT_Session::session()->activeApplication()->desktop()->activeWindow();
@@ -848,7 +849,6 @@ void EntityGUI_3DSketcherDlg::displayAngle(double theAngle1, double theAngle2, d
   Handle(AIS_AngleDimension) anAngleIO  = new AIS_AngleDimension(anEdge1, anEdge2, aPlane, theAngle1 * M_PI / 180.,
            TCollection_ExtendedString(aStr));
   
-  
   SOCC_Prs* aSPrs = dynamic_cast<SOCC_Prs*>(((SOCC_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0));
   
   if (aSPrs)