Fix typos and whitespace

This commit is contained in:
luzpaz
2023-03-22 14:37:58 +00:00
committed by Uwe
parent c3cc964a1f
commit eb852691df
6 changed files with 7 additions and 7 deletions

View File

@@ -692,7 +692,7 @@ public:
}
/// Returns true if this is shared data, or false if a unique copy has been made.
/// It is safe to access data only if it has been copied prior. To force a copy
/// It is safe to access data only if it has been copied prior. To force a copy
/// please \see compact()
bool isRaw() const
{

View File

@@ -698,7 +698,7 @@ bool TaskDlgFemConstraintDisplacement::accept()
name.c_str(),
parameterDisplacement->get_useFlowSurfaceForce() ? "True"
: "False");
std::string scale = parameterDisplacement->getScale();// OvG: determine modified scale
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.Scale = %s",

View File

@@ -48,7 +48,7 @@ class _TaskPanel(object):
self._paramWidget = FreeCADGui.PySideUic.loadUi(
FreeCAD.getHomePath() + "Mod/Fem/Resources/ui/FlowVelocity.ui"
)
# geometry selection widget
# start with Solid in list!
self._selectionWidget = selection_widgets.GeometryElementsSelection(

View File

@@ -229,7 +229,7 @@ def _create_involute_profile(
# ****** calculate angles (all in radians)
angular_pitch = 2 * pi / number_of_teeth # angle subtended by complete tooth/space pair
base_to_ref = genInvolutePolar(Rb, Rref) # angle between base and refernce circle
base_to_ref = genInvolutePolar(Rb, Rref) # angle between base and reference circle
ref_to_stop = genInvolutePolar(Rb, Rfo) - base_to_ref # angle between ref and involute end
if has_non_involute_flank: # involute starts at base circle
start_to_ref = base_to_ref
@@ -261,7 +261,7 @@ def _create_involute_profile(
tooth_thickness_half_angle = angular_pitch / 4 + enlargement_by_shift
psi = tooth_thickness_half_angle # for the formulae below, a symbol is more readable
# rotate all points to make the tooth symetric to the X axis
# rotate all points to make the tooth symmetric to the X axis
inv = [rotate(pt, -base_to_ref - psi) for pt in inv]
# create the back profile of tooth (mirror image on X axis)

View File

@@ -340,7 +340,7 @@ bool DimensionFormatter::isNumericFormat(QString formatSpecifier)
return false;
}
//TODO: similiar code here and above
//TODO: similar code here and above
QStringList DimensionFormatter::getPrefixSuffixSpec(QString fSpec)
{
QStringList result;

View File

@@ -518,7 +518,7 @@ Each unit is approx. 0.1 mm wide</string>
<item row="4" column="0">
<widget class="Gui::PrefCheckBox" name="cbAutoCorrectRefs">
<property name="toolTip">
<string>If checked, sytem will attempt to automatically correct dimension references when the model changes.</string>
<string>If checked, system will attempt to automatically correct dimension references when the model changes.</string>
</property>
<property name="statusTip">
<string/>