GNOME Bugzilla – Bug 785758
libview: Fix debug borders coordinate translation
Last modified: 2017-08-05 06:45:03 UTC
Created attachment 356820 [details] [review] libview: Fix debug borders coordinate translation This commit fixes two bugs in the drawing of borders for "text selection" bounding boxes: 1. Borders in document coordinates were being clipped using view coordinates. 2. The document-to-view coordinate translation didn't take view rotation into account.
Created attachment 356857 [details] [review] libview: Fix debug borders coordinate translation
Review of attachment 356857 [details] [review]: ::: libview/ev-view.c @@ +4535,3 @@ + * + * TODO: Can't we just change the _get_text_mapping API so + * that it matches the other _get_*_mapping APIs? This is because tyext mapping is represented by a cairo region that uses cairo_rectangle_int_t.
Comment on attachment 356857 [details] [review] libview: Fix debug borders coordinate translation Pushed without the comment, thanks!