Fix various typos throughout the codebase

This commit is contained in:
luzpaz
2024-07-07 15:08:15 +00:00
committed by Chris Hennes
parent 0bce5fccc5
commit 9a1f487cdb
20 changed files with 24 additions and 24 deletions

View File

@@ -510,7 +510,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getJoints(bool updateJCS, bool
auto* part1 = getObjFromProp(joint, "Part1");
auto* part2 = getObjFromProp(joint, "Part2");
if (!part1 || !part2 || part1->getFullName() == part2->getFullName()) {
// Remove incomplete joints. Left-over when the user delets a part.
// Remove incomplete joints. Left-over when the user deletes a part.
// Remove incoherent joints (self-pointing joints)
if (delBadJoints) {
getDocument()->removeObject(joint->getNameInDocument());

View File

@@ -281,7 +281,7 @@ std::string Assembly::BomObject::getText(size_t row, size_t col)
if (cell) {
cell->getStringContent(cellName);
// getStringContent is addind a ' before the string for whatever reason.
// getStringContent is adding a ' before the string for whatever reason.
if (!cellName.empty() && cellName.front() == '\'') {
cellName.erase(0, 1); // Remove the first character if it's a '
}

View File

@@ -632,7 +632,7 @@ class TaskAssemblyCreateView(QtCore.QObject):
self.alignMode = "Custom"
self.selectingFeature = True
# We use greedy selection to prevent that clicking again on the solid
# clears selection before trying to select the whole assemly
# clears selection before trying to select the whole assembly
Gui.Selection.setSelectionStyle(Gui.Selection.SelectionStyle.GreedySelection)
self.enableDragger(False)
self.form.LabelAlignDragger.setVisible(True)

View File

@@ -908,7 +908,7 @@ void ViewProviderAssembly::onSelectionChanged(const Gui::SelectionChanges& msg)
bool ViewProviderAssembly::onDelete(const std::vector<std::string>& subNames)
{
// Delete the assembly goups when assembly is deleted
// Delete the assembly groups when assembly is deleted
for (auto obj : getObject()->getOutList()) {
if (obj->getTypeId() == Assembly::JointGroup::getClassTypeId()
|| obj->getTypeId() == Assembly::ViewGroup::getClassTypeId()