Skip to content

Commit

Permalink
AreaSymbol::FillPattern: Don't compare the name
Browse files Browse the repository at this point in the history
The name property is transient, only used by the symbol editor UI.
It is not exported or imported. For proper merging of imported
symbols, fill pattern comparison must ignore the name.
Fixes GH-1828 (duplicate symbol after edit, copy, paste).
  • Loading branch information
dg0yt committed Dec 29, 2020
1 parent 36d6fb1 commit 99229d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/symbols/area_symbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,6 @@ bool AreaSymbol::FillPattern::equals(const AreaSymbol::FillPattern& other, Qt::C
return false;
}

if (name.compare(other.name, case_sensitivity) != 0)
return false;

return true;
}

Expand Down

0 comments on commit 99229d4

Please sign in to comment.