Salome HOME
Minor improvement of Inertia dialog box look-n-feel.
[modules/geom.git] / src / MeasureGUI / MeasureGUI_DistanceDlg.cxx
index af2085805229a0763499affef658d6e12d74bf83..4fcbc5796127aa454981e4c186f4e60e315fd173 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -388,7 +388,10 @@ SALOME_Prs* MeasureGUI_DistanceDlg::buildPrs()
 
       aDimensionStyle->ArrowAspect()->SetLength( aDist / 20.0 );
       aDimensionStyle->LineAspect()->SetWidth( w );
-      aDimensionStyle->SetHorizontalTextAlignment( Prs3d_HTA_Center );
+      aDimensionStyle->SetTextHorizontalPosition( Prs3d_DTHP_Center );
+      aDimensionStyle->SetTextVerticalPosition( Prs3d_DTVP_Center );
+      aDimensionStyle->MakeText3d( Standard_False );
+      aDimensionStyle->MakeArrows3d( Standard_True );
 
       anIO->SetFlyout( 0.0 );
       anIO->SetDimensionAspect( aDimensionStyle );