Fix T53958: Sequencer zoom 1:1 fails
authorCampbell Barton <ideasman42@gmail.com>
Fri, 9 Feb 2018 02:39:47 +0000 (13:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 9 Feb 2018 02:39:47 +0000 (13:39 +1100)
source/blender/editors/space_sequencer/sequencer_edit.c

index 87dfe93378df466d7b9833db4d1b7591fb7bebd9..29a7e11d8592507e6cab1efaf251e7e9011ee992 100644 (file)
@@ -2808,7 +2808,7 @@ static int sequencer_view_zoom_ratio_exec(bContext *C, wmOperator *op)
        float facx = BLI_rcti_size_x(&v2d->mask) / winx;
        float facy = BLI_rcti_size_y(&v2d->mask) / winy;
 
-       BLI_rctf_resize(&v2d->cur, floorf(winx * facx / ratio + 0.5f), floorf(winy * facy / ratio + 0.5f));
+       BLI_rctf_resize(&v2d->cur, ceilf(winx * facx / ratio + 0.5f), ceilf(winy * facy / ratio + 0.5f));
 
        ED_region_tag_redraw(CTX_wm_region(C));