From 0807ec279c82e42cb455365736a2516d6d7b663e Mon Sep 17 00:00:00 2001 From: Zaffy Date: Thu, 20 Feb 2014 00:39:59 +0100 Subject: Fixed crash in caja-pathbar.c (issue #209) --- src/caja-pathbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/caja-pathbar.c') diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index e2d07edc..1d634db5 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -1161,7 +1161,7 @@ caja_path_bar_scroll_down (CajaPathBar *path_bar) * from the end, removing buttons until we get all the space we * need. */ gtk_widget_get_allocation (BUTTON_DATA (up_button->data)->button, &button_allocation); - while (space_available < space_needed) + while (space_available < space_needed && up_button) { space_available += button_allocation.width + path_bar->spacing; up_button = up_button->prev; -- cgit v1.2.1