[Libreoffice-commits] core.git: libreofficekit/qa

Pranav Kant pranavk at collabora.co.uk
Wed Mar 14 10:39:21 UTC 2018


 libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 859b7b09f5b1330b7135744795c578358736ded3
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/51263
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: pranavk <pranavk at collabora.co.uk>

diff --git a/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx b/libreofficekit/qa/gtktiledviewer/gtv-lok-dialog.cxx
index 75c4bae71df5..1d7a2482c069 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