Prefer PBD::Unwinder to temporarily change a variable
This commit is contained in:
parent
f2f9798df1
commit
929754f48c
|
@ -1719,10 +1719,8 @@ Editor::tav_zoom_smooth (bool coarser, bool force_all)
|
||||||
void
|
void
|
||||||
Editor::temporal_zoom_step_mouse_focus_scale (bool zoom_out, double scale)
|
Editor::temporal_zoom_step_mouse_focus_scale (bool zoom_out, double scale)
|
||||||
{
|
{
|
||||||
Editing::ZoomFocus temp_focus = zoom_focus;
|
PBD::Unwinder<Editing::ZoomFocus> zf (zoom_focus, Editing::ZoomFocusMouse);
|
||||||
zoom_focus = Editing::ZoomFocusMouse;
|
|
||||||
temporal_zoom_step_scale (zoom_out, scale);
|
temporal_zoom_step_scale (zoom_out, scale);
|
||||||
zoom_focus = temp_focus;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue
Block a user