We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508c8ce commit 6862a94Copy full SHA for 6862a94
src/core/qgis.cpp
@@ -85,7 +85,7 @@ const char* QGis::qgisUnitTypes[] =
85
86
QGis::UnitType QGis::fromLiteral( QString literal, QGis::UnitType defaultType )
87
{
88
- for ( unsigned int i = 0; i < sizeof( qgisUnitTypes ); i++ )
+ for ( unsigned int i = 0; i < ( sizeof( qgisUnitTypes ) / sizeof( qgisUnitTypes[0] ) ); i++ )
89
90
if ( literal == qgisUnitTypes[ i ] )
91
0 commit comments