summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Sweers <[email protected]>2014-02-20 20:20:14 +0100
committerSander Sweers <[email protected]>2014-02-20 20:20:14 +0100
commit1a65e051fa801a9c3f28d473bae64b92de19a3a1 (patch)
treedd9d6752fb469abafb0efa4feba9f4634aad7bb8 /src
parentddfece703bd71c548f8ec2e22d775b021af9c186 (diff)
parent0807ec279c82e42cb455365736a2516d6d7b663e (diff)
downloadcaja-1a65e051fa801a9c3f28d473bae64b92de19a3a1.tar.bz2
caja-1a65e051fa801a9c3f28d473bae64b92de19a3a1.tar.xz
Merge pull request #260 from Zaffy/master
Fixed crash in caja-pathbar.c (issue #209)
Diffstat (limited to 'src')
-rw-r--r--src/caja-pathbar.c2
1 files changed, 1 insertions, 1 deletions
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;