Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgsvectorlayerproperties.cpp
  2. +1 −1 src/core/qgsexpression.cpp
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
2 changes: 1 addition & 1 deletion src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const char* QgsExpression::BinaryOgcOperatorText[] =
{
"Or", "And",
"PropertyIsEqualTo", "PropertyIsNotEqualTo",
"PropertyIsGreaterThanOrEqualTo", "PropertyIsLessThanOrEqualTo",
"PropertyIsLessThanOrEqualTo", "PropertyIsGreaterThanOrEqualTo",
"PropertyIsLessThan", "PropertyIsGreaterThan",
"", "PropertyIsLike", "", "", "",
"Add", "Sub", "Mul", "Div", "", "",
Expand Down