[Xfce4-commits] <midori:master> Check parts isn't empty in get_display_ellipsize

Christian Dywan noreply at xfce.org
Mon Mar 11 01:12:01 CET 2013


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

commit 262087d02ee011c1f3545c2d8e1f2b789450fe58
Author: Christian Dywan <christian at 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;


More information about the Xfce4-commits mailing list