[latexila] MainWindow: check active_view!=null in update_cursor_position_statusbar
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] MainWindow: check active_view!=null in update_cursor_position_statusbar
- Date: Sun, 6 Aug 2017 08:35:39 +0000 (UTC)
commit bfc5105f4a0d05b9230d846fba12336f950c6cc0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Aug 6 10:23:06 2017 +0200
MainWindow: check active_view!=null in update_cursor_position_statusbar
src/main_window.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main_window.vala b/src/main_window.vala
index f20a311..b8c20ac 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -955,6 +955,9 @@ public class MainWindow : ApplicationWindow
private void update_cursor_position_statusbar ()
{
+ if (active_view == null)
+ return;
+
TextIter iter;
active_document.get_iter_at_mark (out iter, active_document.get_insert ());
int row = (int) iter.get_line ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]