Skip to content
Permalink
Browse files

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

  • Loading branch information
nyalldawson committed Mar 29, 2016
1 parent af8c166 commit 53b493c6e6b49ba725d45e272c0690479c61a301
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 53b493c

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