Commit 8e5249b3 authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

Don't invert y coordinate (Closes: #42).

No need to invert it with poppler >=0.15
parent 2e536ba7
......@@ -4752,9 +4752,11 @@ cb_view_button_release(GtkWidget* widget, GdkEventButton* event, gpointer data)
rectangle.y2 = d;
}
#if !POPPLER_CHECK_VERSION(0,15,0)
/* adapt y coordinates */
rectangle.y1 = page_height - rectangle.y1;
rectangle.y2 = page_height - rectangle.y2;
#endif
/* get selected text */
g_static_mutex_lock(&(Zathura.Lock.pdflib_lock));
......
Supports Markdown
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