]> www.fi.muni.cz Git - evince.git/commitdiff
Check for NULL, fixes bug #460862.
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Sun, 29 Jul 2007 13:56:15 +0000 (13:56 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 29 Jul 2007 13:56:15 +0000 (13:56 +0000)
2007-07-29  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* shell/ev-view.c: (tip_from_link):

Check for NULL, fixes bug #460862.

svn path=/trunk/; revision=2590

ChangeLog
shell/ev-view.c

index 100b1744b397f96d3ac120faf07ea9a69b952a37..238a1524ec3cb8f7e48d2103c1b258ecdc3f4fbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-29  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-view.c: (tip_from_link):
+       
+       Check for NULL, fixes bug #460862.
+
 2007-07-29  Christian Persch  <chpe@gnome.org>
 
        * shell/ev-window.c: (ev_window_enumerate_printer_cb),
index c8b17834adc2689d4ea89284d78e948e84b5ba66..c4ec8db37d55750883cef72011cb3d0be44a42ab 100644 (file)
@@ -1454,8 +1454,10 @@ tip_from_link (EvView *view, EvLink *link)
                case EV_LINK_ACTION_TYPE_GOTO_DEST:
                        page_label = ev_view_page_label_from_dest (view,
                                                                   ev_link_action_get_dest (action));
-                       msg = g_strdup_printf (_("Go to page %s"), page_label);
-                       g_free (page_label);
+                       if (page_label) {
+                               msg = g_strdup_printf (_("Go to page %s"), page_label);
+                               g_free (page_label);
+                       }
                        break;
                case EV_LINK_ACTION_TYPE_GOTO_REMOTE:
                        if (title) {
@@ -1465,7 +1467,6 @@ tip_from_link (EvView *view, EvLink *link)
                                msg = g_strdup_printf (_("Go to file ā€œ%sā€"),
                                                       ev_link_action_get_filename (action));
                        }
-                       
                        break;
                case EV_LINK_ACTION_TYPE_EXTERNAL_URI:
                        msg = g_strdup (ev_link_action_get_uri (action));