Skip to content

Commit

Permalink
Follow up dc7bfc5 : QString::back() too recent to use
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 30, 2019
1 parent dc7bfc5 commit a665eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgssymbollayerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3394,7 +3394,7 @@ void QgsFontMarkerSymbolLayerWidget::setCharacterFromText( const QString &text )
return;

// take the last character of a string for a better experience when users cycle through several characters on their keyboard
QChar chr = text.back();
QChar chr = text.at( text.length() - 1 );
if ( text.contains( QRegularExpression( QStringLiteral( "^0x[0-9a-fA-F]{1,4}$" ) ) ) )
{
bool ok = false;
Expand Down

0 comments on commit a665eac

Please sign in to comment.