Skip to content

Commit

Permalink
I think this is it. (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-2016 authored Jul 11, 2024
1 parent 3225e46 commit fa800b4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ int FilterByDefinitionExpressionOrDisplayFilter::currentFeatureCount() const

void FilterByDefinitionExpressionOrDisplayFilter::setDefExpression(const QString& whereClause)
{
// In QML, "req_type = \'Tree Maintenance or Damage\'"
// reset display filter parameters before setting definition expression parameters
resetDisplayFilterParams();

m_featureLayer->setDefinitionExpression(whereClause);

// Feature count in the extent should not change with different definition expressions.
Expand All @@ -115,6 +117,9 @@ void FilterByDefinitionExpressionOrDisplayFilter::setDefExpression(const QString

void FilterByDefinitionExpressionOrDisplayFilter::setDisplayFilter(const QString& whereClause)
{
// reset definition expression parameters before setting display filter parameters
resetDefExpressionParams();

DisplayFilter* displayFilter = new DisplayFilter("Damaged Trees", whereClause, this);
const QList<DisplayFilter*> availableFilters{displayFilter};

Expand Down

0 comments on commit fa800b4

Please sign in to comment.