[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - libreofficekit/qa
Pranav Kant
pranavk at collabora.co.uk
Wed Mar 14 15:09:06 UTC 2018
libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit f3b26d2e6871e88e6231d5de0bf408f000a50fab
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Wed Mar 14 14:50:58 2018 +0530
lokdialog: debug red-colored boundary for last painted region
Easier to see what's going on inside the LOK dialog.
Change-Id: I59974200af3d2356b7c27eb3dd4032a59c00dbed
Reviewed-on: https://gerrit.libreoffice.org/51266
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
index 5770e1349305..3e4d02f48e11 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
@@ -117,7 +117,13 @@ gtv_lok_dialog_draw(GtkWidget* pDialogDrawingArea, cairo_t* pCairo, gpointer)
cairo_surface_mark_dirty(pSurface);
cairo_set_source_surface(pCairo, pSurface, aRect.x, aRect.y);
+ // paint the dialog image
cairo_paint(pCairo);
+
+ // debug red-colored border around the painted region
+ cairo_set_source_rgb(pCairo, 1.0, 0, 0);
+ cairo_rectangle(pCairo, aRect.x, aRect.y, nWidth, nHeight);
+ cairo_stroke(pCairo);
}
static gboolean
More information about the Libreoffice-commits
mailing list