Commit 0e6790f1 authored by Jason Crain's avatar Jason Crain Committed by Albert Astals Cid

glib: Fix return in poppler_page_get_text_attributes_for_area

Since this function returns a GList*, it should return nullptr on error,
not FALSE.
parent 9b450304
......@@ -2383,7 +2383,7 @@ poppler_page_get_text_attributes_for_area (PopplerPage *page,
GList *attributes = nullptr;
g_return_val_if_fail (POPPLER_IS_PAGE (page), NULL);
g_return_val_if_fail (area != nullptr, FALSE);
g_return_val_if_fail (area != nullptr, nullptr);
selection.x1 = area->x1;
selection.y1 = area->y1;
......
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