Correction to previous commit
authorJulian Eisel <eiseljulian@gmail.com>
Sat, 19 Sep 2015 01:17:06 +0000 (03:17 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Sat, 19 Sep 2015 01:17:06 +0000 (03:17 +0200)
source/blender/editors/space_file/file_utils.c

index 435c04b8ef193894b58d9e79fe3e02b9e5bb0652..3c007f25da3882cecfc9d477bd6867f39ab5432a 100644 (file)
@@ -41,7 +41,7 @@ void file_tile_boundbox(const ARegion *ar, FileLayout *layout, const int file, r
        int xmin, ymax;
 
        ED_fileselect_layout_tilepos(layout, file, &xmin, &ymax);
-       ymax = ar->v2d.tot.ymax - ymax; /* real, view space ymax */
+       ymax = (int)ar->v2d.tot.ymax - ymax; /* real, view space ymax */
        BLI_rcti_init(r_bounds, xmin, xmin + layout->tile_w + layout->tile_border_x,
                      ymax - layout->tile_h - layout->tile_border_y, ymax);
 }