From 60256cc547a3582807b7200f1c953d7ec091cc7d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 12 Mar 2015 15:18:00 +0100 Subject: lokdocview: ensure that the cursor is at least 30 twips wide While Writer uses "0" for the "minimal width" case, editeng uses 2. We used to round up 0 to 30, do it for any value smaller than 30. Change-Id: Ib3cc7645b55881fc51f0729163cdea5eb9ca4f0a --- libreofficekit/source/gtk/lokdocview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libreofficekit') diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index e3fd1cba34d0..338b56897950 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -519,7 +519,7 @@ static gboolean renderOverlay(GtkWidget* pWidget, GdkEventExpose* /*pEvent*/, gp if (pDocView->m_bEdit && pDocView->m_bCursorVisible && pDocView->m_bCursorOverlayVisible && !lcl_isEmptyRectangle(&pDocView->m_aVisibleCursor)) { - if (pDocView->m_aVisibleCursor.width == 0) + if (pDocView->m_aVisibleCursor.width < 30) // Set a minimal width if it would be 0. pDocView->m_aVisibleCursor.width = 30; -- cgit v1.2.3