add assert to ensure API contract is met

This commit is contained in:
Vincent Sanders 2013-05-04 17:01:00 +01:00
parent 7e2a93bb72
commit 30b1fc1dbd

View File

@ -2894,6 +2894,8 @@ void browser_window_redraw_rect(struct browser_window *bw, int x, int y,
void browser_window_page_drag_start(struct browser_window *bw, int x, int y)
{
assert(bw != NULL);
browser_window_set_drag_type(bw, DRAGGING_PAGE_SCROLL, NULL);
bw->drag_start_x = x;