Skip to content

Commit

Permalink
fix check for extension saving style (follow 88187f1)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Jun 19, 2012
1 parent 2e005c7 commit 86c4b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ void QgsVectorLayerProperties::saveStyleAs( StyleType styleType )
bool defaultLoadedFlag = false;

//ensure the user never omitted the extension from the file name
if ( myOutputFileName.endsWith( extension, Qt::CaseInsensitive ) )
if ( !myOutputFileName.endsWith( extension, Qt::CaseInsensitive ) )
{
myOutputFileName += extension;
}
Expand Down

0 comments on commit 86c4b6a

Please sign in to comment.