From 5c8d191d3f735173c8234b62deabbdfc40cc1e2f Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 13 Aug 2019 08:49:31 +0200 Subject: Fix typos Change-Id: If99059383039e65aacfc55baec660eb6fde47032 Reviewed-on: https://gerrit.libreoffice.org/77376 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- svx/source/unodraw/unoshap2.cxx | 2 +- svx/source/unodraw/unoshape.cxx | 8 ++++---- svx/source/xml/xmlgrhlp.cxx | 4 ++-- svx/source/xoutdev/_xpoly.cxx | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'svx') 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(aGraphic.GetGDIMetaFile())); if (ImplCheckForEPS(rMetafile)) @@ -811,7 +811,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::ReferenceSetCompressMode(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(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(); -- cgit