fix for own commit r49991, this exposed bad logic in rect copy function.
[blender.git] / source / blender / editors / space_view3d / view3d_view.c
index 93d70004b183b7bd7f1ac916c1fde46a41b9db7a..fbbf23beca4221890979c536dcb0f308781965e8 100644 (file)
@@ -1212,10 +1212,7 @@ short view3d_opengl_select(ViewContext *vc, unsigned int *buffer, unsigned int b
                rect.ymax = input->ymin + 12;
        }
        else {
-               rect.xmin = input->xmin;
-               rect.xmax = input->xmax;
-               rect.ymin = input->ymin;
-               rect.ymax = input->ymax;
+               BLI_rctf_rcti_copy(&rect, input);
        }
        
        setwinmatrixview3d(ar, v3d, &rect);