From 57090a43f7bc66151e79d96c5ed12e6281e46f4f Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 11 Oct 2022 07:45:03 -0400 Subject: [PATCH] [Sketcher] [Part] Fix typos and whitespace --- src/Mod/Part/App/AppPartPy.cpp | 4 ++-- src/Mod/Sketcher/Gui/SketcherSettingsDisplay.ui | 2 +- src/Mod/Sketcher/Gui/Utils.h | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mod/Part/App/AppPartPy.cpp b/src/Mod/Part/App/AppPartPy.cpp index 2a9b4d7782..7e0df3738b 100644 --- a/src/Mod/Part/App/AppPartPy.cpp +++ b/src/Mod/Part/App/AppPartPy.cpp @@ -2032,7 +2032,7 @@ private: #else #ifdef FC_OS_WIN32 //PyUNICODE is only 16 bits on Windows (wchar_t), so passing 32 bit UCS4 - //will result in unknow glyph in even positions, and wrong characters in + //will result in unknown glyph in even positions, and wrong characters in //odd positions. unichars = (Py_UNICODE*)PyUnicode_AsWideCharString(p, &pysize); #else @@ -2048,7 +2048,7 @@ private: #else #ifdef FC_OS_WIN32 //PyUNICODE is only 16 bits on Windows (wchar_t), so passing 32 bit UCS4 - //will result in unknow glyph in even positions, and wrong characters in + //will result in unknown glyph in even positions, and wrong characters in //odd positions. unichars = (Py_UNICODE*)PyUnicode_AsWideCharString(intext, &pysize); #else diff --git a/src/Mod/Sketcher/Gui/SketcherSettingsDisplay.ui b/src/Mod/Sketcher/Gui/SketcherSettingsDisplay.ui index ba6406e4be..5f6527407d 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettingsDisplay.ui +++ b/src/Mod/Sketcher/Gui/SketcherSettingsDisplay.ui @@ -257,7 +257,7 @@ Supports all unit systems except 'US customary' and 'Building US/Euro'. Cursor position coordinates will be displayed beside cursor while editing sketch. - Show coodinates beside cursor while editing + Show coordinates beside cursor while editing true diff --git a/src/Mod/Sketcher/Gui/Utils.h b/src/Mod/Sketcher/Gui/Utils.h index be518517cd..6c0a1a1853 100644 --- a/src/Mod/Sketcher/Gui/Utils.h +++ b/src/Mod/Sketcher/Gui/Utils.h @@ -129,13 +129,12 @@ void removeRedundantHorizontalVertical(Sketcher::SketchObject* psketch, void ConstraintToAttachment(Sketcher::GeoElementId element, Sketcher::GeoElementId attachment, double distance, App::DocumentObject* obj); -//convenience functions for cursor coodinates +//convenience functions for cursor coordinates bool hideUnits(); bool showCursorCoords(); bool useSystemDecimals(); std::string lengthToDisplayFormat(double value, int digits); std::string angleToDisplayFormat(double value, int digits); - } /// converts a 2D vector into a 3D vector in the XY plane