Skip to content

Commit

Permalink
MapFindFeature: Pass map to query parser
Browse files Browse the repository at this point in the history
The map object is needed for SYMBOL queries.
Fixes GH-2183.
  • Loading branch information
dg0yt committed Jan 20, 2024
1 parent 12899f8 commit f962f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/map/map_find_feature.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2020 Kai Pastor
* Copyright 2017-2024 Kai Pastor
*
* This file is part of OpenOrienteering.
*
Expand Down Expand Up @@ -153,7 +153,7 @@ ObjectQuery MapFindFeature::makeQuery() const
auto text = text_edit->toPlainText().trimmed();
if (!text.isEmpty())
{
query = ObjectQueryParser().parse(text);
query = ObjectQueryParser(controller.getMap()).parse(text);
if (!query || query.getOperator() == ObjectQuery::OperatorSearch)
query = ObjectQuery{ ObjectQuery(ObjectQuery::OperatorSearch, text),
ObjectQuery::OperatorOr,
Expand Down

0 comments on commit f962f35

Please sign in to comment.