diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-08-13 08:49:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-13 09:00:28 +0200 |
commit | 5c8d191d3f735173c8234b62deabbdfc40cc1e2f (patch) | |
tree | 6cb9f847063b471f66d575450e25dfbc034a64ae /svx | |
parent | a3ee2c625ef760b4de7b0fd72e5810be04b4c19e (diff) |
Fix typos
Change-Id: If99059383039e65aacfc55baec660eb6fde47032
Reviewed-on: https://gerrit.libreoffice.org/77376
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 8 | ||||
-rw-r--r-- | svx/source/xml/xmlgrhlp.cxx | 4 | ||||
-rw-r--r-- | svx/source/xoutdev/_xpoly.cxx | 10 |
4 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 3589c088ac36..97935d68af4f 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -207,7 +207,7 @@ void SvxShapeGroup::addUnoShape( const uno::Reference< drawing::XShape >& xShape GetSdrObject()->GetSubList()->InsertObject(pSdrShape, nPos); // TTTT Was created using mpModel in CreateSdrObject_ above - // TTTT may be good to add a assertion here for the future + // TTTT may be good to add an assertion here for the future // pSdrShape->SetModel(GetSdrObject()->GetModel()); // #85922# It makes no sense to set the layer asked diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index da9881ac3a64..d7f665bc9253 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1946,7 +1946,7 @@ uno::Any SvxShape::GetAnyForItem( SfxItemSet const & aSet, const SfxItemProperty } default: { - // get value form ItemSet + // get value from ItemSet aAny = SvxItemPropertySet_getPropertyValue( pMap, aSet ); if( pMap->aType != aAny.getValueType() ) @@ -2012,7 +2012,7 @@ beans::PropertyState SvxShape::_getPropertyState( const OUString& PropertyName ) break; } - // if a item is set, this doesn't mean we want it :) + // if an item is set, this doesn't mean we want it :) if( beans::PropertyState_DIRECT_VALUE == eState ) { switch( pMap->nWID ) @@ -3803,9 +3803,9 @@ sal_Int16 SAL_CALL SvxShape::resetActionLocks( ) } -/** since polygon shapes can change theire kind during editing, we have +/** since polygon shapes can change their kind during editing, we have to recheck it here. - Circle shapes also change theire kind, but theire all treated equal + Circle shapes also change their kind, but they are all treated equal so no update is necessary. */ void SvxShape::updateShapeKind() diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index edbfb16c41f8..0490a7008132 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -691,7 +691,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X } else if (aGraphicObject.GetType() == GraphicType::GdiMetafile) { - // SJ: first check if this metafile is just a eps file, then we will store the eps instead of svm + // SJ: first check if this metafile is just an eps file, then we will store the eps instead of svm GDIMetaFile& rMetafile(const_cast<GDIMetaFile&>(aGraphic.GetGDIMetaFile())); if (ImplCheckForEPS(rMetafile)) @@ -811,7 +811,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X pStream->SetCompressMode(SvStreamCompressFlags::ZBITMAP); rOutSavedMimeType = comphelper::GraphicMimeTypeHelper::GetMimeTypeForExtension("svm"); - // SJ: first check if this metafile is just a eps file, then we will store the eps instead of svm + // SJ: first check if this metafile is just an eps file, then we will store the eps instead of svm GDIMetaFile& rMtf(const_cast<GDIMetaFile&>(aGraphic.GetGDIMetaFile())); const MetaCommentAction* pComment = ImplCheckForEPS(rMtf); if (pComment) diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx index 74980ecdc994..d937a54e8710 100644 --- a/svx/source/xoutdev/_xpoly.cxx +++ b/svx/source/xoutdev/_xpoly.cxx @@ -152,7 +152,7 @@ void ImpXPolygon::InsertSpace( sal_uInt16 nPos, sal_uInt16 nCount ) if ( nPos > nPoints ) nPos = nPoints; - // if the polygon is too small than enlarge it + // if the polygon is too small then enlarge it if( (nPoints + nCount) > nSize ) Resize( nPoints + nCount ); @@ -283,7 +283,7 @@ XPolygon::XPolygon(const tools::Rectangle& rRect, long nRx, long nRy) pImpXPolygon->nPoints = nPos + 1; } -/// create a ellipse (curve) as Bézier polygon +/// create an ellipse (curve) as Bézier polygon XPolygon::XPolygon(const Point& rCenter, long nRx, long nRy, sal_uInt16 nStartAngle, sal_uInt16 nEndAngle, bool bClose) : pImpXPolygon( 17 ) @@ -311,7 +311,7 @@ XPolygon::XPolygon(const Point& rCenter, long nRx, long nRy, } while ( !bLoopEnd ); - // if not a full circle than connect edges with center point if necessary + // if not a full circle then connect edges with center point if necessary if ( !bFull && bClose ) pImpXPolygon->pPointAry[++nPos] = rCenter; @@ -619,7 +619,7 @@ bool XPolygon::CheckAngles(sal_uInt16& nStart, sal_uInt16 nEnd, sal_uInt16& nA1, */ void XPolygon::CalcSmoothJoin(sal_uInt16 nCenter, sal_uInt16 nDrag, sal_uInt16 nPnt) { - // If nPoint is no control point, i.e. cannot be moved, than + // If nPoint is no control point, i.e. cannot be moved, then // move nDrag instead on the line between nCenter and nPnt if ( !IsControl(nPnt) ) { @@ -787,7 +787,7 @@ void XPolygon::Distort(const tools::Rectangle& rRefRect, long X1, X2, X3, X4; long Y1, Y2, Y3, Y4; DBG_ASSERT(rDistortedRect.pImpXPolygon->nPoints >= 4, - "Distort: rectangle to small"); + "Distort: rectangle too small"); X1 = rDistortedRect[0].X(); Y1 = rDistortedRect[0].Y(); |