Skip to content
Permalink
Browse files

Merge pull request #6353 from nyalldawson/proc_normalize

[processing] Don't replace " with ' when handling layer paths
  • Loading branch information
nyalldawson committed Feb 16, 2018
2 parents b6111d2 + 5c40975 commit d380c6109621d855f72c9924ce18791c1ee507c4
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/core/processing/qgsprocessingutils.cpp
  2. +1 −1 tests/src/analysis/testqgsprocessing.cpp
@@ -295,7 +295,6 @@ QString QgsProcessingUtils::normalizeLayerSource( const QString &source )
{
QString normalized = source;
normalized.replace( '\\', '/' );
normalized.replace( '"', QLatin1String( "'" ) );
return normalized.trimmed();
}

@@ -682,7 +682,7 @@ void TestQgsProcessing::compatibleLayers()
void TestQgsProcessing::normalizeLayerSource()
{
QCOMPARE( QgsProcessingUtils::normalizeLayerSource( "data\\layers\\test.shp" ), QString( "data/layers/test.shp" ) );
QCOMPARE( QgsProcessingUtils::normalizeLayerSource( "data\\layers \"new\"\\test.shp" ), QString( "data/layers 'new'/test.shp" ) );
QCOMPARE( QgsProcessingUtils::normalizeLayerSource( "data\\layers \"new\"\\test.shp" ), QString( "data/layers \"new\"/test.shp" ) );
}

void TestQgsProcessing::context()

0 comments on commit d380c61

Please sign in to comment.
You can’t perform that action at this time.