Commit 88e2368e authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

Make sure metadata exists before reference it when opening a copy

parent 557d2c4d
......@@ -2128,7 +2128,8 @@ ev_window_open_copy_at_dest (EvWindow *window,
EvWindow *new_window = EV_WINDOW (ev_window_new ());
new_window->priv->metadata = g_object_ref (window->priv->metadata);
if (window->priv->metadata)
new_window->priv->metadata = g_object_ref (window->priv->metadata);
ev_window_open_document (new_window,
dest, 0, NULL);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment