diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-08-16 16:34:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-16 19:16:10 +0200 |
commit | 3db23609d368687dd2b3122160d450e4bc5bbb78 (patch) | |
tree | 149b9567d019ac383fca0b1a5cf1c1c6cd18fb83 /starmath | |
parent | a94f95d173e531fe7df0e8caebd6763253798b39 (diff) |
Fix typos
Split from
https://gerrit.libreoffice.org/#/c/76764/
Change-Id: I19f11f80f08ce0d5b4ffda20449f1cddea980b7d
Reviewed-on: https://gerrit.libreoffice.org/77596
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/cursor.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/visitors.hxx | 2 | ||||
-rw-r--r-- | starmath/source/cursor.cxx | 2 | ||||
-rw-r--r-- | starmath/source/document.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathtype.cxx | 2 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 2 | ||||
-rw-r--r-- | starmath/source/rect.cxx | 2 | ||||
-rw-r--r-- | starmath/source/visitors.cxx | 6 |
8 files changed, 11 insertions, 11 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index b04b39748829..2ba17fb0a46c 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -62,7 +62,7 @@ class SmDocShell; /** Formula cursor * * This class is used to represent a cursor in a formula, which can be used to manipulate - * an formula programmatically. + * a formula programmatically. * @remarks This class is a very intimate friend of SmDocShell. */ class SmCursor{ @@ -140,7 +140,7 @@ public: /** Insert a new row or newline * - * Inserts a new row if position is in an matrix or stack command. + * Inserts a new row if position is in a matrix or stack command. * Otherwise a newline is inserted if we're in a toplevel line. * * @returns True, if a new row/line could be inserted. diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index 290f1bdeacb8..39f5c6323064 100644 --- a/starmath/inc/visitors.hxx +++ b/starmath/inc/visitors.hxx @@ -272,7 +272,7 @@ private: * denoted by | in "H|". * * Parameter variables: - * The following variables are used to transfer parameters in to calls and results out + * The following variables are used to transfer parameters into calls and results out * of calls. * pRightMost : SmCaretPosGraphEntry* * diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 2d74d454a2f6..f7d127bd25e9 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1299,7 +1299,7 @@ void SmCursor::EndEdit(){ //I think this notifies people around us that we've modified this document... mpDocShell->SetModified(); //I think SmDocShell uses this value when it sends an update graphics event - //Anyway comments elsewhere suggests it need to be updated... + //Anyway comments elsewhere suggests it needs to be updated... mpDocShell->mnModifyCount++; //TODO: Consider copying the update accessibility code from SmDocShell::SetText in here... diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index b8222e2c0a02..c3373f5968c9 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -394,7 +394,7 @@ void SmDocShell::DrawFormula(OutputDevice &rDev, Point &rPosition, bool bDrawSel rPosition.AdjustY(maFormat.GetDistance( DIS_TOPSPACE ) ); //! in case of high contrast-mode (accessibility option!) - //! the draw mode needs to be set to default, because when imbedding + //! the draw mode needs to be set to default, because when embedding //! Math for example in Calc in "a over b" the fraction bar may not //! be visible else. More generally: the FillColor may have been changed. DrawModeFlags nOldDrawMode = DrawModeFlags::Default; diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 65a7bb834009..da48da787fa5 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -1817,7 +1817,7 @@ bool MathType::HandleSize(sal_Int16 nLstSize,sal_Int16 nDefSize, int &rSetSize) } else { - /*sizetable should theoreticaly be filled with the default sizes + /*sizetable should theoretically be filled with the default sizes *of the various font groupings matching starmaths equivalents in aTypeFaces, and a test would be done to see if the new font size would be the same as what starmath would have chosen for diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 102851120a22..663aa1c22361 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -1954,7 +1954,7 @@ std::unique_ptr<SmStructureNode> SmParser::DoFontSize() { aValue = fTmp; - //!! keep the numerator and denominator from being to large + //!! keep the numerator and denominator from being too large //!! otherwise ongoing multiplications may result in overflows //!! (for example in SmNode::SetFontSize the font size calculated //!! may become 0 because of this!!! Happens e.g. for ftmp = 2.9 with Linux diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index ab32022aac2a..bb1a1628dd85 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -467,7 +467,7 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) // The baseline is set according to 'eCopyMode'. // If one of the rectangles has no relevant info the other one is copied. { - // get some values used for (italic) spaces adaption + // get some values used for (italic) spaces adaptation // ! (need to be done before changing current SmRect) ! long nL = std::min(GetItalicLeft(), rRect.GetItalicLeft()), nR = std::max(GetItalicRight(), rRect.GetItalicRight()); diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 41872f478b4f..a950046162bf 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -742,7 +742,7 @@ SmCaretPosGraphBuildingVisitor::SmCaretPosGraphBuildingVisitor( SmNode* pRootNod if( pRootNode->GetType( ) == SmNodeType::Table ){ //Children are SmLineNodes //Or so I thought... Apparently, the children can be instances of SmExpression - //especially if there's a error in the formula... So he we go, a simple work around. + //especially if there's an error in the formula... So here we go, a simple work around. for( auto pChild : *static_cast<SmStructureNode*>(pRootNode) ) { if(!pChild) @@ -869,7 +869,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmSubSupNode* pNode ) mpRightMost->SetRight( bodyLeft ); } - //If there's an CSUP + //If there's a CSUP pChild = pNode->GetSubSup( CSUP ); if( pChild ){ SmCaretPosGraphEntry *cLeft; //Child left @@ -880,7 +880,7 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmSubSupNode* pNode ) mpRightMost->SetRight( right ); } - //If there's an CSUB + //If there's a CSUB pChild = pNode->GetSubSup( CSUB ); if( pChild ){ SmCaretPosGraphEntry *cLeft; //Child left |