diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:31:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-15 11:31:17 +0400 |
commit | fed6b2bcb75a0d67d1b1266fd13d9a4b89dd1923 (patch) | |
tree | 7d2491890e92fb8e712c54ef897e79324a8150b3 /source/blender/editors/interface/view2d.c | |
parent | b85056cbf4d0a0cc83db0120599318d368ea8f8c (diff) |
code cleanup: remove paranoid/invalid NULL checks and also reduce some unneeded size_t -> int conversions.
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index 0f1d1a24dcb..9c71746d045 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -851,7 +851,7 @@ void UI_view2d_totRect_set_resize(View2D *v2d, int width, int height, int resize if (scroll & V2D_SCROLL_VERTICAL) height -= V2D_SCROLL_HEIGHT; - if (ELEM3(0, v2d, width, height)) { + if (ELEM(0, width, height)) { if (G.debug & G_DEBUG) printf("Error: View2D totRect set exiting: v2d=%p width=%d height=%d\n", (void *)v2d, width, height); // XXX temp debug info return; |