| 975 | } |
| 976 | |
| 977 | void Framework::SaveViewport() |
| 978 | { |
| 979 | if (m_routingManager.IsRoutingActive()) |
| 980 | return; |
| 981 | |
| 982 | m2::AnyRectD rect; |
| 983 | if (m_currentModelView.isPerspective()) |
| 984 | { |
| 985 | ScreenBase modelView = m_currentModelView; |
| 986 | modelView.ResetPerspective(); |
| 987 | rect = modelView.GlobalRect(); |
| 988 | } |
| 989 | else |
| 990 | { |
| 991 | rect = m_currentModelView.GlobalRect(); |
| 992 | } |
| 993 | settings::Set(kScreenViewport, rect); |
| 994 | } |
| 995 | |
| 996 | void Framework::LoadViewport() |
| 997 | { |
nothing calls this directly
no test coverage detected