mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
[drape] Allow controlling viewport restoration on DeactivateMapSelection
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
fc199252eb
commit
90492e95e6
@@ -562,10 +562,10 @@ void DrapeEngine::SelectObject(SelectionShape::ESelectedObject obj, m2::PointD c
|
||||
MessagePriority::Normal);
|
||||
}
|
||||
|
||||
void DrapeEngine::DeselectObject()
|
||||
void DrapeEngine::DeselectObject(bool restoreViewport)
|
||||
{
|
||||
m_threadCommutator->PostMessage(ThreadsCommutator::RenderThread,
|
||||
make_unique_dp<SelectObjectMessage>(SelectObjectMessage::DismissTag()),
|
||||
make_unique_dp<SelectObjectMessage>(SelectObjectMessage::DismissTag(), restoreViewport),
|
||||
MessagePriority::Normal);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user