diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-12 15:18:00 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:09 +0100 |
commit | 60256cc547a3582807b7200f1c953d7ec091cc7d (patch) | |
tree | 806d0dfba7a8116de4287019a8d84458a11407d9 /libreofficekit | |
parent | 2ba8f4d2c0e24bc356ab72e4f00e27560f471f16 (diff) |
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
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |