forked from organicmaps/organicmaps
Correctly pass feature when copying UserMarks.
This commit is contained in:
parent
bd2c286e89
commit
d9afdafddf
1 changed files with 5 additions and 1 deletions
|
@ -132,7 +132,11 @@ UserMark::Type SearchMarkPoint::GetMarkType() const
|
|||
|
||||
unique_ptr<UserMarkCopy> SearchMarkPoint::Copy() const
|
||||
{
|
||||
return unique_ptr<UserMarkCopy>(new UserMarkCopy(new SearchMarkPoint(m_ptOrg, m_container)));
|
||||
// TODO(AlexZ): Remove this code after UserMark refactoring.
|
||||
UserMark * mark = new SearchMarkPoint(m_ptOrg, m_container);
|
||||
if (m_feature)
|
||||
mark->SetFeature(unique_ptr<FeatureType>(new FeatureType(*m_feature)));
|
||||
return unique_ptr<UserMarkCopy>(new UserMarkCopy(mark));
|
||||
}
|
||||
|
||||
PoiMarkPoint::PoiMarkPoint(UserMarkContainer * container)
|
||||
|
|
Loading…
Add table
Reference in a new issue