Skip to content

Commit 0908daa

Browse files
luzpazjef-n
authored andcommitted
Misc. typos
Found via `codespell -q 3 -I ../qgis-word-whitelist.txt --skip="*.ts,*.po,./scripts/spell_check"`
1 parent d6b2537 commit 0908daa

38 files changed

+46
-46
lines changed

scripts/context_help_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"""
3434
import hashlib
3535
import sys
36-
# check to see if a class name was specified and if so, craete the context id
36+
# check to see if a class name was specified and if so, create the context id
3737
if len(sys.argv) > 1:
3838
hash = hashlib.sha1()
3939
# set the hash to the name passed on the command line

src/analysis/interpolation/DualEdgeTriangulation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ void DualEdgeTriangulation::eliminateHorizontalTriangles()
15791579
el2 = mPointVector[p2]->z();
15801580
el3 = mPointVector[p3]->z();
15811581

1582-
if ( el1 == el2 && el2 == el3 )//we found a horizonal triangle
1582+
if ( el1 == el2 && el2 == el3 )//we found a horizontal triangle
15831583
{
15841584
//swap edges if it is possible, if it would remove the horizontal triangle and if the minimum angle generated by the swap is high enough
15851585
if ( swapPossible( ( uint )e1 ) && mPointVector[mHalfEdge[mHalfEdge[mHalfEdge[e1]->getDual()]->getNext()]->getPoint()]->z() != el1 && swapMinAngle( e1 ) > minangle )

src/core/geometry/qgstriangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class CORE_EXPORT QgsTriangle : public QgsPolygon
211211
bool isRight( double angleTolerance = 0.0001 ) const;
212212

213213
/**
214-
* Is the triangle scalene (all sides have differen lengths)?
214+
* Is the triangle scalene (all sides have different lengths)?
215215
* \param lengthTolerance The tolerance to use
216216
* \returns True or False. Always false for empty triangle.
217217
* * Example:

src/core/pal/pointset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ void PointSet::splitPolygons( QLinkedList<PointSet *> &shapes_toProcess,
499499
if ( shape->parent )
500500
delete shape;
501501
}
502-
// check for useless spliting
502+
// check for useless splitting
503503
else if ( imax == imin || nbPtSh1 <= 2 || nbPtSh2 <= 2 || nbPtSh1 == nbp || nbPtSh2 == nbp )
504504
{
505505
shapes_final.append( shape );

src/core/processing/models/qgsprocessingmodelalgorithm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
865865
for ( ; childIt != childMap.constEnd(); ++childIt )
866866
{
867867
QgsProcessingModelChildAlgorithm child;
868-
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
868+
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
869869
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
870870
// with no way for users to repair them
871871
if ( !child.loadVariant( childIt.value() ) )
@@ -893,7 +893,7 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
893893
for ( ; paramDefIt != paramDefMap.constEnd(); ++paramDefIt )
894894
{
895895
std::unique_ptr< QgsProcessingParameterDefinition > param( QgsProcessingParameters::parameterFromVariantMap( paramDefIt.value().toMap() ) );
896-
// we be leniant here - even if we couldn't load a parameter, don't interrupt the model loading
896+
// we be lenient here - even if we couldn't load a parameter, don't interrupt the model loading
897897
// otherwise models may become unusable (e.g. due to removed plugins providing algs/parameters)
898898
// with no way for users to repair them
899899
if ( param )

src/core/qgsdataitem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class CORE_EXPORT QgsDataItem : public QObject
326326
QVector<QgsDataItem *> mChildren; // easier to have it always
327327
State mState;
328328
QString mName;
329-
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be differen if it is
329+
// Path is slash ('/') separated chain of item identifiers which are usually item names, but may be different if it is
330330
// necessary to distinguish paths of two providers to the same source (e.g GRASS location and standard directory have the same
331331
// name but different paths). Identifiers in path must not contain '/' characters.
332332
// The path is used to identify item in tree.

src/core/qgsgmlschema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class CORE_EXPORT QgsGmlSchema : public QObject
116116
BoundingBox,
117117
FeatureMembers, // gml:featureMembers
118118
FeatureMember, // gml:featureMember
119-
Feature, // feature element containint attrs and geo (inside gml:featureMember)
119+
Feature, // feature element containing attrs and geo (inside gml:featureMember)
120120
Attribute,
121121
Geometry
122122
};

src/core/qgslegendsettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ QgsLegendSettings::QgsLegendSettings()
3838
QStringList QgsLegendSettings::splitStringForWrapping( const QString &stringToSplt ) const
3939
{
4040
QStringList list;
41-
// If the string contains nothing then just return the string without spliting.
41+
// If the string contains nothing then just return the string without splitting.
4242
if ( wrapChar().count() == 0 )
4343
list << stringToSplt;
4444
else

src/core/qgstestutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool QgsTestUtils::testProviderIteratorThreadSafety( QgsVectorDataProvider *prov
4040
jobs.append( qMakePair( provider, request ) );
4141
}
4242

43-
//freaking hammmer the provider with a ton of concurrent requests.
43+
//freaking hammer the provider with a ton of concurrent requests.
4444
//thread unsafe providers... you better be ready!!!!
4545
QtConcurrent::blockingMap( jobs, getFeaturesForProvider );
4646

src/core/qgsvectorlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
22582258
void editCommandEnded();
22592259

22602260
/**
2261-
* Signal emitted, whan an edit command is destroyed
2261+
* Signal emitted, when an edit command is destroyed
22622262
* \note This is not a rollback, it is only related to the current edit command.
22632263
* See beforeRollBack()
22642264
*/

src/core/qgsvectorlayerdiagramprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class CORE_EXPORT QgsVectorLayerDiagramProvider : public QgsAbstractLabelProvide
100100
protected:
101101
//! initialization method - called from constructors
102102
void init();
103-
//! helper method to register one diagram feautre
103+
//! helper method to register one diagram feature
104104
QgsLabelFeature *registerDiagram( QgsFeature &feat, QgsRenderContext &context, const QgsGeometry &obstacleGeometry = QgsGeometry() );
105105

106106
protected:

src/core/raster/qgsrasterpipe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class CORE_EXPORT QgsRasterPipe
116116
* Returns true on success */
117117
bool setOn( int idx, bool on );
118118

119-
//! Test if interface at index may be swithed on/off
119+
//! Test if interface at index may be switched on/off
120120
bool canSetOn( int idx, bool on );
121121

122122
// Getters for special types of interfaces

src/core/symbology/qgsstyle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef QMap<int, QString> QgsSymbolGroupMap;
4949
*
5050
* The supported constraints are:
5151
* tag -> symbol has the tag matching the parameter
52-
* !tag -> symbol doesnot have the tag matching the parameter
52+
* !tag -> symbol doesn't have the tag matching the parameter
5353
* name -> symbol has a part of its name matching the parameter
5454
* !name -> symbol doesn't have any part of the name matching the parameter
5555
*

src/gui/auth/qgsauthsslconfigwidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class GUI_EXPORT QgsAuthSslConfigWidget : public QWidget, private Ui::QgsAuthSsl
6868
//! Gets the host:port to associate with the server certificate
6969
const QString sslHost();
7070

71-
//! Gets the SSL protocl used for connections
71+
//! Gets the SSL protocol used for connections
7272
QSsl::SslProtocol sslProtocol();
7373

7474
//! Gets list of the SSL errors (as enums) to be ignored for connections

src/gui/qgsattributedialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class GUI_EXPORT QgsAttributeDialog : public QDialog
8888
void setEditCommandMessage( const QString &message ) { mAttributeForm->setEditCommandMessage( message ); }
8989

9090
/**
91-
* Intercept window activate/deactive events to show/hide the highlighted feature.
91+
* Intercept window activate/deactivate events to show/hide the highlighted feature.
9292
*
9393
* \param e The event
9494
*

src/gui/qgsattributetypeloaddialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class GUI_EXPORT QgsAttributeTypeLoadDialog: public QDialog, private Ui::QgsAttr
5454
/**
5555
* Returns the value map which is currently active.
5656
*
57-
* \returns value map of vlues selected from layer
57+
* \returns value map of values selected from layer
5858
*/
5959
QMap<QString, QVariant> &valueMap();
6060

src/gui/qgsrasterformatsaveoptionswidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class GUI_EXPORT QgsRasterFormatSaveOptionsWidget: public QWidget, private Ui::Q
100100
void apply();
101101

102102
/**
103-
* Opens window with options desctiption for given provider
103+
* Opens window with options description for given provider
104104
* and output format
105105
*/
106106
void helpOptions();

src/gui/qgsrasterlayersaveasdialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,12 +703,12 @@ void QgsRasterLayerSaveAsDialog::mTileModeCheckBox_toggled( bool toggled )
703703

704704
// Disabled (Radim), auto enabling of pyramids was making impression that
705705
// we (programmers) know better what you (user) want to do,
706-
// certainly auto expaning was bad experience
706+
// certainly auto expanding was a bad experience
707707

708708
//if ( ! mPyramidsGroupBox->isChecked() )
709709
// mPyramidsGroupBox->setChecked( true );
710710

711-
// Auto expanding mPyramidsGroupBox is bad - it auto crolls content of dialog
711+
// Auto expanding mPyramidsGroupBox is bad - it auto scrolls content of dialog
712712
//if ( mPyramidsGroupBox->isCollapsed() )
713713
// mPyramidsGroupBox->setCollapsed( false );
714714
//mPyramidsOptionsWidget->checkAllLevels( true );

src/gui/qgsrelationeditorwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( QWidget *parent )
4545
// buttons
4646
QHBoxLayout *buttonLayout = new QHBoxLayout();
4747
buttonLayout->setContentsMargins( 0, 0, 0, 0 );
48-
// toogle editing
48+
// toggle editing
4949
mToggleEditingButton = new QToolButton( this );
5050
mToggleEditingButton->setObjectName( QStringLiteral( "mToggleEditingButton" ) );
5151
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleEditing.svg" ) ) );

src/gui/symbology/qgsrulebasedrendererwidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class QgsSymbolSelectorWidget;
2727

2828
#include <QAbstractItemModel>
2929

30-
/* Features count fro rule */
30+
/* Features count for rule */
3131
struct QgsRuleBasedRendererCount SIP_SKIP
3232
{
3333
int count; // number of features

src/providers/grass/qgsgrassgislib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ int GRASS_LIB_EXPORT QgsGrassGisLib::G__gisinit( const char *version, const char
224224
}
225225
mDistanceArea.setSourceCrs( mCrs );
226226

227-
// Read region fron environment variable
227+
// Read region from environment variable
228228
// QGIS_GRASS_REGION=west,south,east,north,cols,rows
229229
#if 0
230230
QString regionStr = getenv( "QGIS_GRASS_REGION" );

src/providers/mssql/qgsmssqlsourceselect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ void QgsMssqlSourceSelect::btnConnect_clicked()
620620
else
621621
{
622622
QApplication::restoreOverrideCursor();
623-
// Let user know we couldn't retieve tables from the MSSQL provider
623+
// Let user know we couldn't retrieve tables from the MSSQL provider
624624
QMessageBox::warning( this,
625625
tr( "MSSQL Provider" ), q.lastError().text() );
626626
return;

src/providers/wcs/qgswcsprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static QString WCS_DESCRIPTION = QStringLiteral( "OGC Web Coverage Service versi
6363

6464
static QString DEFAULT_LATLON_CRS = QStringLiteral( "CRS:84" );
6565

66-
// TODO: colortable - use comon baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671
66+
// TODO: colortable - use common baseclass with gdal, mapserver does not support http://trac.osgeo.org/mapserver/ticket/1671
6767

6868
QgsWcsProvider::QgsWcsProvider( const QString &uri, const ProviderOptions &options )
6969
: QgsRasterDataProvider( uri, options )

src/server/qgsbufferserverresponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SERVER_EXPORT QgsBufferServerResponse: public QgsServerResponse
6666
QMap<QString, QString> headers() const override { return mHeaders; }
6767

6868
/**
69-
* Returns true if the headers have alredy been sent
69+
* Returns true if the headers have already been sent
7070
*/
7171
bool headersSent() const override;
7272

src/server/qgsserverresponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SERVER_EXPORT QgsServerResponse
7373
virtual QMap<QString, QString> headers() const = 0;
7474

7575
/**
76-
* Returns true if the headers have alredy been sent
76+
* Returns true if the headers have already been sent
7777
*/
7878
virtual bool headersSent() const = 0;
7979

src/server/services/wfs/qgswfs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
qgswms.cpp
33
-------------------------
44
begin : December 20 , 2016
5-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
6-
(C) 2012 by René-Luc D'Hont ( parts fron qgswmshandler)
5+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
6+
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
77
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
88
(C) 2016 by David Marteau
99
email : marco dot hugentobler at karto dot baug dot ethz dot ch

src/server/services/wfs/qgswfsutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
qgsfssutils.cpp
33
-------------------------
44
begin : December 20 , 2016
5-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
5+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
66
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
77
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
88
(C) 2017 by David Marteau

src/server/services/wfs/qgswfsutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Define WFS service utility functions
55
------------------------------------
66
begin : December 20 , 2016
7-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswfshandler)
7+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswfshandler)
88
(C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
99
(C) 2014 by Alessandro Pasotti ( parts from qgswfshandler)
1010
(C) 2017 by David Marteau

src/server/services/wms/qgsmediancut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
qgsmediancut.cpp
33
-------------------------
44
begin : December 20 , 2016
5-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
5+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
66
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
77
(C) 2016 by David Marteau
88
email : marco dot hugentobler at karto dot baug dot ethz dot ch

src/server/services/wms/qgsmediancut.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Median cut color reduction implementation
55
-----------------------------------------
66
begin : December 20 , 2016
7-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
7+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
88
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
99
(C) 2016 by David Marteau
1010
email : marco dot hugentobler at karto dot baug dot ethz dot ch

src/server/services/wms/qgswms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
qgswms.cpp
33
-------------------------
44
begin : December 20 , 2016
5-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
5+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
66
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
77
(C) 2016 by David Marteau
88
email : marco dot hugentobler at karto dot baug dot ethz dot ch

src/server/services/wms/qgswmsutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
qgswmsutils.cpp
33
-------------------------
44
begin : December 20 , 2016
5-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
5+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
66
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
77
(C) 2016 by David Marteau
88
email : marco dot hugentobler at karto dot baug dot ethz dot ch

src/server/services/wms/qgswmsutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Define WMS service utility functions
55
------------------------------------
66
begin : December 20 , 2016
7-
copyright : (C) 2007 by Marco Hugentobler ( parts fron qgswmshandler)
7+
copyright : (C) 2007 by Marco Hugentobler ( parts from qgswmshandler)
88
(C) 2014 by Alessandro Pasotti ( parts from qgswmshandler)
99
(C) 2016 by David Marteau
1010
email : marco dot hugentobler at karto dot baug dot ethz dot ch

tests/src/core/testqgslayoutobject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TestQgsLayoutObject: public QObject
3737
void context();
3838
void writeReadXml();
3939
void writeRetrieveDDProperty(); //test writing and retrieving dd properties from xml
40-
void writeRetrieveCustomProperties(); //test writing/retreiving custom properties from xml
40+
void writeRetrieveCustomProperties(); //test writing/retrieving custom properties from xml
4141

4242

4343
private:

tests/src/core/testqgslayoutshapes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ class TestQgsLayoutShapes : public QObject
4343
void init();// will be called before each testfunction is executed.
4444
void cleanup();// will be called after every testfunction.
4545
void rectangle(); //test if rectangle shape is functioning
46-
void triangle(); //test if triange shape is functioning
46+
void triangle(); //test if triangle shape is functioning
4747
void ellipse(); //test if ellipse shape is functioning
4848
void roundedRectangle(); //test if rounded rectangle shape is functioning
49-
void symbol(); //test is styling shapes via symbol is working
49+
void symbol(); //test if styling shapes via symbol is working
5050
void readWriteXml();
5151
void bounds();
5252
void shapeRotation();

tests/src/core/testqgslayoututils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ void TestQgsLayoutUtils::scaledFontPixelSize()
440440
void TestQgsLayoutUtils::fontAscentMM()
441441
{
442442
mTestFont.setPointSize( 12 );
443-
//platform specific font rendering differences mean these tests need to be very leniant
443+
//platform specific font rendering differences mean these tests need to be very lenient
444444
QGSCOMPARENEAR( QgsLayoutUtils::fontAscentMM( mTestFont ), 3.9, 0.5 );
445445
}
446446

@@ -453,14 +453,14 @@ void TestQgsLayoutUtils::fontDescentMM()
453453
void TestQgsLayoutUtils::fontHeightMM()
454454
{
455455
mTestFont.setPointSize( 12 );
456-
//platform specific font rendering differences mean these tests need to be very leniant
456+
//platform specific font rendering differences mean these tests need to be very lenient
457457
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightMM( mTestFont ), 4.9, 0.5 );
458458
}
459459

460460
void TestQgsLayoutUtils::fontHeightCharacterMM()
461461
{
462462
mTestFont.setPointSize( 12 );
463-
//platform specific font rendering differences mean these tests need to be very leniant
463+
//platform specific font rendering differences mean these tests need to be very lenient
464464
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'a' ) ), 2.4, 0.15 );
465465
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'l' ) ), 3.15, 0.16 );
466466
QGSCOMPARENEAR( QgsLayoutUtils::fontHeightCharacterMM( mTestFont, QChar( 'g' ) ), 3.2, 0.11 );
@@ -469,15 +469,15 @@ void TestQgsLayoutUtils::fontHeightCharacterMM()
469469

470470
void TestQgsLayoutUtils::textWidthMM()
471471
{
472-
//platform specific font rendering differences mean this test needs to be very leniant
472+
//platform specific font rendering differences mean this test needs to be very lenient
473473
mTestFont.setPointSize( 12 );
474474
QGSCOMPARENEAR( QgsLayoutUtils::textWidthMM( mTestFont, QString( "test string" ) ), 20, 2 );
475475

476476
}
477477

478478
void TestQgsLayoutUtils::textHeightMM()
479479
{
480-
//platform specific font rendering differences mean this test needs to be very leniant
480+
//platform specific font rendering differences mean this test needs to be very lenient
481481
mTestFont.setPointSize( 12 );
482482
QGSCOMPARENEAR( QgsLayoutUtils::textHeightMM( mTestFont, QString( "test string" ) ), 3.9, 0.2 );
483483
QGSCOMPARENEAR( QgsLayoutUtils::textHeightMM( mTestFont, QString( "test\nstring" ) ), 8.7, 0.2 );

tests/src/python/test_qgslayoutexporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# look for Poppler w/ Cairo, then muPDF
5757
# * Poppler w/ Cairo renders correctly
5858
# * Poppler w/o Cairo does not always correctly render vectors in PDF to image
59-
# * muPDF renders correctly, but sightly shifts colors
59+
# * muPDF renders correctly, but slightly shifts colors
6060
for util in [
6161
'pdftocairo',
6262
# 'mudraw',

tests/src/python/test_qgspallabeling_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# look for Poppler w/ Cairo, then muPDF
5656
# * Poppler w/ Cairo renders correctly
5757
# * Poppler w/o Cairo does not always correctly render vectors in PDF to image
58-
# * muPDF renders correctly, but sightly shifts colors
58+
# * muPDF renders correctly, but slightly shifts colors
5959
for util in [
6060
'pdftocairo',
6161
# 'mudraw',

0 commit comments

Comments
 (0)