forked from organicmaps/organicmaps
[ios] Fixed crush due bookmark's category changing.
This commit is contained in:
parent
489baa2497
commit
e5306b4266
1 changed files with 2 additions and 3 deletions
|
@ -123,15 +123,14 @@ enum RowInMetaInfo
|
|||
else
|
||||
{
|
||||
Framework & f = GetFramework();
|
||||
auto const & bac = self.data.bac;
|
||||
BookmarkCategory * category = f.GetBmCategory(bac.m_categoryIndex);
|
||||
BookmarkCategory * category = f.GetBmCategory(m_cachedBac.m_categoryIndex);
|
||||
if (!category)
|
||||
return;
|
||||
|
||||
{
|
||||
BookmarkCategory::Guard guard(*category);
|
||||
Bookmark * bookmark =
|
||||
static_cast<Bookmark *>(guard.m_controller.GetUserMarkForEdit(bac.m_bookmarkIndex));
|
||||
static_cast<Bookmark *>(guard.m_controller.GetUserMarkForEdit(m_cachedBac.m_bookmarkIndex));
|
||||
if (!bookmark)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue