Skip to content
Permalink
Browse files
Fix another unintended int to QChar conversion in debug message
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent 6e5d191 commit af859912c348bc49722e31dad6f94fae2475d9ba
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/settings/qgssettingsentry.cpp
@@ -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;
}

0 comments on commit af85991

Please sign in to comment.