From: rnc Date: Wed, 11 Jul 2012 15:52:57 +0000 (+0000) Subject: tiny things X-Git-Tag: V6_6_0a1~89 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb7a1227ab6b569e5a139035976ad4c739507fc7;p=modules%2Fgeom.git tiny things --- diff --git a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx index 771e17507..3b6d41899 100755 --- a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx @@ -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_Viewer*)(vw->getViewManager()->getViewModel()))->CreatePrs(0)); if (aSPrs)