From 643db5d3ff7de94ac5f63883a7bd1bf80c7e161a Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 29 Oct 2015 08:57:58 +0300 Subject: [PATCH] refs #674: correct using of doubles coordinates --- src/CurveCreator/CurveCreator_Utils.cxx | 2 +- src/CurveCreator/CurveCreator_UtilsICurve.cxx | 2 +- src/CurveCreator/CurveCreator_UtilsICurve.hxx | 2 +- src/CurveCreator/CurveCreator_Widget.cxx | 2 +- src/CurveCreator/CurveCreator_Widget.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CurveCreator/CurveCreator_Utils.cxx b/src/CurveCreator/CurveCreator_Utils.cxx index 52ed6f0e2..863432b4c 100644 --- a/src/CurveCreator/CurveCreator_Utils.cxx +++ b/src/CurveCreator/CurveCreator_Utils.cxx @@ -556,7 +556,7 @@ void CurveCreator_Utils::getSelectedPoints( Handle(AIS_InteractiveContext) theCo { thePoints.clear(); - std::list aSelectedPoints; + std::list aSelectedPoints; gp_Pnt aPnt; std::map aPointsMap; diff --git a/src/CurveCreator/CurveCreator_UtilsICurve.cxx b/src/CurveCreator/CurveCreator_UtilsICurve.cxx index a0bd400a9..cf6dc203d 100644 --- a/src/CurveCreator/CurveCreator_UtilsICurve.cxx +++ b/src/CurveCreator/CurveCreator_UtilsICurve.cxx @@ -25,7 +25,7 @@ const double LOCAL_SELECTION_TOLERANCE = 0.0001; int CurveCreator_UtilsICurve::findLocalPointIndex( const CurveCreator_ICurve* theCurve, - int theSectionId, float theX, float theY ) + int theSectionId, double theX, double theY ) { int aPntIndex = -1; if ( !theCurve ) diff --git a/src/CurveCreator/CurveCreator_UtilsICurve.hxx b/src/CurveCreator/CurveCreator_UtilsICurve.hxx index 89ff253f5..39c73b537 100644 --- a/src/CurveCreator/CurveCreator_UtilsICurve.hxx +++ b/src/CurveCreator/CurveCreator_UtilsICurve.hxx @@ -39,7 +39,7 @@ public: * \param theY the Y coordinate of the point */ CURVECREATOR_EXPORT static int findLocalPointIndex( const CurveCreator_ICurve* theCurve, - int theSectionId, float theX, float theY ); + int theSectionId, double theX, double theY ); CURVECREATOR_EXPORT static void findSectionsToPoints( const CurveCreator_ICurve* theCurve, const double theX, const double theY, diff --git a/src/CurveCreator/CurveCreator_Widget.cxx b/src/CurveCreator/CurveCreator_Widget.cxx index df9c6b710..54cf166bb 100644 --- a/src/CurveCreator/CurveCreator_Widget.cxx +++ b/src/CurveCreator/CurveCreator_Widget.cxx @@ -1490,7 +1490,7 @@ void CurveCreator_Widget::finishCurveModification( * \param theX the X coordinate of the point * \param theY the Y coordinate of the point */ -int CurveCreator_Widget::findLocalPointIndex( int theSectionId, float theX, float theY ) +int CurveCreator_Widget::findLocalPointIndex( int theSectionId, double theX, double theY ) { return CurveCreator_UtilsICurve::findLocalPointIndex( myCurve, theSectionId, theX, theY ); } diff --git a/src/CurveCreator/CurveCreator_Widget.h b/src/CurveCreator/CurveCreator_Widget.h index 1fa317f56..87433c553 100644 --- a/src/CurveCreator/CurveCreator_Widget.h +++ b/src/CurveCreator/CurveCreator_Widget.h @@ -195,7 +195,7 @@ private: CurveCreator_ICurve::SectionToPointList() ); // curve algorithm - int findLocalPointIndex( int theSectionId, float theX, float theY ); + int findLocalPointIndex( int theSectionId, double theX, double theY ); void findSectionsToPoints( const double theX, const double theY, CurveCreator_ICurve::SectionToPointList& thePoints ); void convert( const CurveCreator_ICurve::SectionToPointList& thePoints, -- 2.39.2