lokdocview: Reset view completely

Desktop / LibreOffice - Pranav Kant [gnome.org] - 29 September 2015 06:32 UTC

Resetting tiles only is not enough. We need to empty stale selection rectangles, handle bars, cursor positions etc., so that they do not interfere with next view to be opened using same widget instance.

We are not destroying the document here, so the widget would still point to the same document unless it is made to point to another document by subsequent lok_doc_view_open_document calls.

Change-Id: I3c7cc789c8c7393b3793b4edf6aa96d54bc0b1a3 Reviewed-on: https://gerrit.libreoffice.org/18866

c3ce35f lokdocview: Reset view completely
libreofficekit/source/gtk/lokdocview.cxx | 37 ++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)

Upstream: cgit.freedesktop.org


  • Share