Kaydet (Commit) f26dd84f authored tarafından Miklos Vajna's avatar Miklos Vajna

lokdocview: reset start/end or middle handle depending on if we have selection

Change-Id: Iee5511a8077e37999865aa83da2dfde1fdd4dbc2
üst 5e5649af
......@@ -604,8 +604,12 @@ static gboolean lok_docview_callback(gpointer pData)
if (pRectangles == NULL)
{
memset(&pDocView->m_aTextSelectionStart, 0, sizeof(pDocView->m_aTextSelectionStart));
memset(&pDocView->m_aHandleStartRect, 0, sizeof(pDocView->m_aHandleStartRect));
memset(&pDocView->m_aTextSelectionEnd, 0, sizeof(pDocView->m_aTextSelectionEnd));
memset(&pDocView->m_aHandleEndRect, 0, sizeof(pDocView->m_aHandleEndRect));
}
else
memset(&pDocView->m_aHandleMiddleRect, 0, sizeof(pDocView->m_aHandleMiddleRect));
gtk_widget_queue_draw(GTK_WIDGET(pDocView->pEventBox));
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment