Skip to content
Permalink
Browse files

Fix stats dock not working with field names with spaces (fix #14541)

(cherry-picked from 53b493c)
  • Loading branch information
nyalldawson committed Apr 4, 2016
1 parent 0df7874 commit 0760e30ea60f63dc314e4c50f4cf74be5deca752
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsstatisticalsummarydockwidget.cpp
@@ -107,7 +107,7 @@ QgsStatisticalSummaryDockWidget::~QgsStatisticalSummaryDockWidget()

void QgsStatisticalSummaryDockWidget::refreshStatistics()
{
if ( !mLayer || !mFieldExpressionWidget->isValidExpression() )
if ( !mLayer || ( mFieldExpressionWidget->isExpression() && !mFieldExpressionWidget->isValidExpression() ) )
{
mStatisticsTable->setRowCount( 0 );
return;

0 comments on commit 0760e30

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