fix filters using this_unit in [hides]
args.loc is the location we use for 'filter as if the unit woudl be there', still the unit is curently at args.u.get_location() so to make scoped_xy_unit find the unit we have to give args.u.get_location()
This commit is contained in:
parent
2a79475448
commit
f5911b653a
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ bool unit_filter_compound::matches(const unit_filter_args& args) const
|
|||
bool res;
|
||||
|
||||
if(args.loc.valid()) {
|
||||
scoped_xy_unit auto_store("this_unit", args.loc, args.fc->get_disp_context().units());
|
||||
scoped_xy_unit auto_store("this_unit", args.u.get_location(), args.fc->get_disp_context().units());
|
||||
if (args.u2) {
|
||||
const map_location& loc2 = args.u2->get_location();
|
||||
scoped_xy_unit u2_auto_store("other_unit", loc2, args.fc->get_disp_context().units());
|
||||
|
|
Loading…
Add table
Reference in a new issue