Updating branch refs/heads/master
         to 262087d02ee011c1f3545c2d8e1f2b789450fe58 (commit)
       from 81d3e2d62aa6808533babd7e07dbeb69210ed772 (commit)

commit 262087d02ee011c1f3545c2d8e1f2b789450fe58
Author: Christian Dywan <christ...@twotoasts.de>
Date:   Mon Mar 11 00:15:09 2013 +0100

    Check parts isn't empty in get_display_ellipsize
    
    Fixes: https://bugs.launchpad.net/midori/+bug/1153072

 midori/midori-tab.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-tab.vala b/midori/midori-tab.vala
index 161300b..a7b8671 100644
--- a/midori/midori-tab.vala
+++ b/midori/midori-tab.vala
@@ -180,7 +180,7 @@ namespace Midori {
                 return Pango.EllipsizeMode.START;
 
             string[] parts = title.split (" ");
-            if (uri.has_suffix (parts[parts.length - 1].down ()))
+            if (parts[0] != null && uri.has_suffix (parts[parts.length - 
1].down ()))
                 return Pango.EllipsizeMode.START;
 
             return Pango.EllipsizeMode.END;
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to