From 958686d7b9e94caf0c0558cffc7bbf4f03ce8f21 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 27 Sep 2016 19:42:46 +0200 Subject: [PATCH] fix msvc compiler warnings fix typo --- src/Mod/Fem/FemConstraintSelfWeight.py | 2 +- src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/FemConstraintSelfWeight.py b/src/Mod/Fem/FemConstraintSelfWeight.py index 2fbdd5021..8ef6e7241 100644 --- a/src/Mod/Fem/FemConstraintSelfWeight.py +++ b/src/Mod/Fem/FemConstraintSelfWeight.py @@ -31,7 +31,7 @@ import _FemConstraintSelfWeight def makeFemConstraintSelfWeight(name="FemConstraintSelfWeight"): - '''makeFemFemConstraintSelfWeight([name]): creates an self weight object to define a gravitiy load''' + '''makeFemFemConstraintSelfWeight([name]): creates an self weight object to define a gravity load''' obj = FemGui.getActiveAnalysis().Document.addObject("Fem::FeaturePython", name) _FemConstraintSelfWeight._FemConstraintSelfWeight(obj) if FreeCAD.GuiUp: diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp index 3ecaa03b3..0db90be63 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraintTransform.cpp @@ -224,9 +224,9 @@ void ViewProviderFemConstraintTransform::updateData(const App::Property* prop) SbVec3f diry(y_axis_x, y_axis_y ,y_axis_z); SbRotation roty(SbVec3f(0, 1, 0), diry); - base = base + dirz * scaledlengthA *0.75; - basex = basex + dirx * scaledlengthA*0.65; - basey = basey + diry * scaledlengthA*0.65; + base = base + dirz * scaledlengthA * 0.75f; + basex = basex + dirx * scaledlengthA * 0.65f; + basey = basey + diry * scaledlengthA * 0.65f; SoSeparator* sep = new SoSeparator();