Skip to content

Commit

Permalink
Fix another unintended int to QChar conversion in debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent 6e5d191 commit af85991
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/settings/qgssettingsentry.cpp
Expand Up @@ -301,19 +301,19 @@ bool QgsSettingsEntryString::setValue( const QString &value, const QStringList &
if ( value.length() < mMinLength )
{
QgsDebugMsg( QObject::tr( "Can't set value for settings with key '%1'. String length '%2' is shorter than minimum length '%3'." )
.arg( QgsSettingsEntryBase::key( dynamicKeyPartList ),
value.length(),
mMinLength ) );
.arg( QgsSettingsEntryBase::key( dynamicKeyPartList ) )
.arg( value.length() )
.arg( mMinLength ) );
return false;
}

if ( mMaxLength >= 0
&& value.length() > mMaxLength )
{
QgsDebugMsg( QObject::tr( "Can't set value for settings with key '%1'. String length '%2' is longer than maximum length '%3'." )
.arg( QgsSettingsEntryBase::key( dynamicKeyPartList ),
value.length(),
mMinLength ) );
.arg( QgsSettingsEntryBase::key( dynamicKeyPartList ) )
.arg( value.length() )
.arg( mMinLength ) );
return false;
}

Expand Down

0 comments on commit af85991

Please sign in to comment.