Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintDistance.cpp
index 02931bcc29d08b662006c0df232b596a5584af3f..eef61d0a900e7802f6842308c7c96b7b2df725da 100644 (file)
@@ -71,7 +71,7 @@ AISObjectPtr SketchPlugin_ConstraintDistance::getAISObject(AISObjectPtr thePrevi
   if (!sketch())
     return thePrevious;
 
-  AISObjectPtr anAIS = SketcherPrs_Factory::lengthDimensionConstraint(this, 
+  AISObjectPtr anAIS = SketcherPrs_Factory::lengthDimensionConstraint(this,
                                                                       sketch()->coordinatePlane(),
                                                                       thePrevious);
   return anAIS;
@@ -166,12 +166,12 @@ double SketchPlugin_ConstraintDistance::calculateCurrentDistance()
 
 void SketchPlugin_ConstraintDistance::attributeChanged(const std::string& theID)
 {
-  if (theID == SketchPlugin_Constraint::ENTITY_A() || 
-      theID == SketchPlugin_Constraint::ENTITY_B()) 
+  if (theID == SketchPlugin_Constraint::ENTITY_A() ||
+      theID == SketchPlugin_Constraint::ENTITY_B())
   {
     std::shared_ptr<ModelAPI_AttributeDouble> aValueAttr = std::dynamic_pointer_cast<
         ModelAPI_AttributeDouble>(data()->attribute(SketchPlugin_Constraint::VALUE()));
-    if (!aValueAttr->isInitialized()) { 
+    if (!aValueAttr->isInitialized()) {
       // only if it is not initialized, try to compute the current value
       double aDistance = calculateCurrentDistance();
       if (aDistance > 0) { // set as value the length of updated references
@@ -181,7 +181,7 @@ void SketchPlugin_ConstraintDistance::attributeChanged(const std::string& theID)
   } else if (theID == SketchPlugin_Constraint::FLYOUT_VALUE_PNT() && !myFlyoutUpdate) {
     myFlyoutUpdate = true;
     // Recalculate flyout point in local coordinates of the distance constraint:
-    // the X coordinate is a length of projection of the flyout point on the 
+    // the X coordinate is a length of projection of the flyout point on the
     //                  line binding two distanced points
     //                  or a line of projection of the distanced point onto the distanced segment
     // the Y coordinate is a distance from the flyout point to the line