windows port

This commit is contained in:
adam 2010-10-08 14:55:05 +00:00
parent e62fe64c08
commit a5001f9559
3 changed files with 6 additions and 2 deletions

View File

@ -317,7 +317,7 @@ void SMESHGUI_FilterTable::AdditionalWidget::SetPrecision(const int theId, const
if ( qobject_cast<SMESHGUI_SpinBox*>( myWidgets[ theId ] ) ) { if ( qobject_cast<SMESHGUI_SpinBox*>( myWidgets[ theId ] ) ) {
SMESHGUI_SpinBox* sb = qobject_cast<SMESHGUI_SpinBox*>( myWidgets[ theId ] ); SMESHGUI_SpinBox* sb = qobject_cast<SMESHGUI_SpinBox*>( myWidgets[ theId ] );
double val = sb->GetValue(); double val = sb->GetValue();
double min = pow(10, -(sb->decimals())); double min = pow(10.0, -(sb->decimals()));
sb->RangeStepAndValidator( 0., 1.e20, 0.1, precision ? precision : "len_tol_precision" ); sb->RangeStepAndValidator( 0., 1.e20, 0.1, precision ? precision : "len_tol_precision" );
sb->SetValue( qMax( val, min ) ); sb->SetValue( qMax( val, min ) );
} }

View File

@ -25,6 +25,10 @@
// Author : Nicolas REJNERI // Author : Nicolas REJNERI
// Module : SMESH // Module : SMESH
// //
#ifdef WNT
#define NOMINMAX
#endif
#include "SMESH_MeshEditor_i.hxx" #include "SMESH_MeshEditor_i.hxx"
#include "SMDS_Mesh0DElement.hxx" #include "SMDS_Mesh0DElement.hxx"

View File

@ -60,7 +60,7 @@ namespace
*/ */
//================================================================================ //================================================================================
class SMDS_EXPORT Q2TAdaptor_Triangle : public SMDS_MeshFace class STDMESHERS_EXPORT Q2TAdaptor_Triangle : public SMDS_MeshFace
{ {
const SMDS_MeshNode* _nodes[3]; const SMDS_MeshNode* _nodes[3];
public: public: