no remove double property lookups in ED_fileselect_set_params and redundant NULL check in file_main_area_draw.

This commit is contained in:
Campbell Barton
2013-08-26 06:54:05 +00:00
parent d11e419792
commit c0d67d26aa
2 changed files with 26 additions and 25 deletions

View File

@@ -328,7 +328,7 @@ static void file_main_area_draw(const bContext *C, ARegion *ar)
/* Allow dynamically sliders to be set, saves notifiers etc. */
if (params && (params->display == FILE_IMGDISPLAY)) {
if (params->display == FILE_IMGDISPLAY) {
v2d->scroll = V2D_SCROLL_RIGHT;
v2d->keepofs &= ~V2D_LOCKOFS_Y;
v2d->keepofs |= V2D_LOCKOFS_X;