Commit fdd09344 authored by Marco Pesenti Gritti's avatar Marco Pesenti Gritti

2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>

        * glib/poppler-action.cc:

        Initialize window title even if the action is unknown
parent e9753049
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
* glib/poppler-action.cc:
Initialize window title even if the action is unknown
2005-09-26 Marco Pesenti Gritti <mpg@redhat.com> 2005-09-26 Marco Pesenti Gritti <mpg@redhat.com>
* glib/poppler-action.cc: * glib/poppler-action.cc:
......
...@@ -253,6 +253,9 @@ _poppler_action_new (PopplerDocument *document, ...@@ -253,6 +253,9 @@ _poppler_action_new (PopplerDocument *document,
action = g_new0 (PopplerAction, 1); action = g_new0 (PopplerAction, 1);
if (title)
action->any.title = g_strdup (title);
if (link == NULL) { if (link == NULL) {
action->type = POPPLER_ACTION_UNKNOWN; action->type = POPPLER_ACTION_UNKNOWN;
return action; return action;
...@@ -289,7 +292,5 @@ _poppler_action_new (PopplerDocument *document, ...@@ -289,7 +292,5 @@ _poppler_action_new (PopplerDocument *document,
break; break;
} }
if (title)
action->any.title = g_strdup (title);
return action; return action;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment