Skip to content

Commit

Permalink
Use case insensitive check for image filename extension (fix #9482)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 9, 2014
1 parent d4043be commit a9ac0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgisgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace QgisGui
#endif

// Add the file type suffix to the fileName if required
if ( !ext.isNull() && !outputFileName.endsWith( "." + ext ) )
if ( !ext.isNull() && !outputFileName.toLower().endsWith( "." + ext.toLower() ) )
{
outputFileName += "." + ext;
}
Expand Down

0 comments on commit a9ac0d7

Please sign in to comment.