[map] Refactor fix for unused variable warning

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
Ferenc Géczi 2024-12-18 00:00:00 +00:00 committed by Konstantin Pastbin
parent 58df08f390
commit 4c41eb5816

View file

@ -2249,8 +2249,7 @@ place_page::Info Framework::BuildPlacePageInfo(place_page::BuildInfo const & bui
if (buildInfo.m_trackId != kml::kInvalidTrackId)
{
auto const & track = *GetBookmarkManager().GetTrack(buildInfo.m_trackId);
auto rect = track.GetLimitRect();
track.UpdateSelectionInfo(rect, trackSelectionInfo);
track.UpdateSelectionInfo(track.GetLimitRect(), trackSelectionInfo);
}
else
trackSelectionInfo = FindTrackInTapPosition(buildInfo);