[gnome-documents] lokview: Refresh the view after changing part
- From: Pranav Kant <pranavk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] lokview: Refresh the view after changing part
- Date: Wed, 20 Jan 2016 13:43:58 +0000 (UTC)
commit aa8ec882a3ae5b2f582c39a87c88310eea517afc
Author: Pranav Kant <pranavk gnome org>
Date: Tue Jan 19 00:32:45 2016 +0530
lokview: Refresh the view after changing part
Ideally set_part() should take care of refreshing the view, but it
doesn't. Call reset_view() manually after calling set_part().
LibreOffice bug for the same:
https://bugs.documentfoundation.org/show_bug.cgi?id=97236
https://bugzilla.gnome.org/show_bug.cgi?id=753686
src/lokview.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index 87b3c14..3e0bfdb 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -426,6 +426,8 @@ const LOKViewNavControls = new Lang.Class({
if (currentPart < 0)
return;
this._lokView.view.set_part(currentPart);
+ // FIXME: https://bugs.documentfoundation.org/show_bug.cgi?id=97236
+ this._lokView.view.reset_view();
this._lokView.currentPart = currentPart;
},
@@ -436,6 +438,8 @@ const LOKViewNavControls = new Lang.Class({
if (currentPart > totalParts)
return;
this._lokView.view.set_part(currentPart);
+ // FIXME: https://bugs.documentfoundation.org/show_bug.cgi?id=97236
+ this._lokView.view.reset_view();
this._lokView.currentPart = currentPart;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]