File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -76,18 +76,23 @@ namespace QgsWfs
76
76
if ( val.isEmpty () )
77
77
return theList;
78
78
79
- QRegExp rx ( exp );
80
- if ( rx.indexIn ( val, 0 ) == -1 )
81
- {
79
+ if ( exp.isEmpty () )
82
80
theList << val;
83
- }
84
81
else
85
82
{
86
- int pos = 0 ;
87
- while ( ( pos = rx.indexIn ( val, pos ) ) != -1 )
83
+ QRegExp rx ( exp );
84
+ if ( rx.indexIn ( val, 0 ) == -1 )
85
+ {
86
+ theList << val;
87
+ }
88
+ else
88
89
{
89
- theList << rx.cap ( 1 );
90
- pos += rx.matchedLength ();
90
+ int pos = 0 ;
91
+ while ( ( pos = rx.indexIn ( val, pos ) ) != -1 )
92
+ {
93
+ theList << rx.cap ( 1 );
94
+ pos += rx.matchedLength ();
95
+ }
91
96
}
92
97
}
93
98
@@ -332,7 +337,7 @@ namespace QgsWfs
332
337
333
338
QStringList QgsWfsParameters::expFilters () const
334
339
{
335
- return mWfsParameters [ QgsWfsParameter::EXP_FILTER ].toStringListWithExp ();
340
+ return mWfsParameters [ QgsWfsParameter::EXP_FILTER ].toStringListWithExp ( QString ( ) );
336
341
}
337
342
338
343
QString QgsWfsParameters::geometryNameAsString () const
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ namespace QgsWfs
83
83
84
84
/* *
85
85
* Converts the parameter into a list of string.
86
- * \param exp The expression to use for splitting
86
+ * \param exp The expression to use for splitting, pass an empty string to avoid splitting
87
87
* \returns A list of strings
88
88
* \throws QgsBadRequestException Invalid parameter exception
89
89
*/
You can’t perform that action at this time.
0 commit comments