| 161 | } |
| 162 | |
| 163 | void OnZoomSel(const CommandContext &context) |
| 164 | { |
| 165 | auto &project = context.project; |
| 166 | auto &selectedRegion = ViewInfo::Get( project ).selectedRegion; |
| 167 | auto &viewport = Viewport::Get(project); |
| 168 | viewport.Zoom(GetZoomOfSelection(project)); |
| 169 | viewport.SetHorizontalThumb(selectedRegion.t0()); |
| 170 | } |
| 171 | |
| 172 | void OnZoomToggle(const CommandContext &context) |
| 173 | { |
nothing calls this directly
no test coverage detected