Skip to content

Commit 0760e30

Browse files
committedApr 4, 2016
Fix stats dock not working with field names with spaces (fix #14541)
(cherry-picked from 53b493c)
1 parent 0df7874 commit 0760e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsstatisticalsummarydockwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ QgsStatisticalSummaryDockWidget::~QgsStatisticalSummaryDockWidget()
107107

108108
void QgsStatisticalSummaryDockWidget::refreshStatistics()
109109
{
110-
if ( !mLayer || !mFieldExpressionWidget->isValidExpression() )
110+
if ( !mLayer || ( mFieldExpressionWidget->isExpression() && !mFieldExpressionWidget->isValidExpression() ) )
111111
{
112112
mStatisticsTable->setRowCount( 0 );
113113
return;

0 commit comments

Comments
 (0)
Please sign in to comment.