[evince] libview: Update the cursor area after positioning the cursor when moving between lines



commit 074dfec73f7ff4cce5021c8cdc0b6d0b686ea663
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Thu Jul 18 13:09:16 2013 +0200

    libview: Update the cursor area after positioning the cursor when moving between lines

 libview/ev-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 60ae6c4..70c2cbb 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5356,6 +5356,9 @@ ev_view_move_cursor (EvView         *view,
                        gtk_widget_error_bell (GTK_WIDGET (view));
                        return TRUE;
                }
+
+               if (!get_caret_cursor_area (view, view->cursor_page, view->cursor_offset, &rect))
+                       return TRUE;
        } else {
                view->cursor_line_offset = rect.x;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]