Browse Source

Added check after going through gtk_events.

merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
72cb162ba1
  1. 3
      src/window.cc

3
src/window.cc

@ -650,7 +650,8 @@ void Window::goto_line_entry() {
buffer->place_cursor(buffer->get_iter_at_line(line));
while(gtk_events_pending())
gtk_main_iteration();
notebook.get_current_view()->scroll_to(buffer->get_insert(), 0.0, 1.0, 0.5);
if(notebook.get_current_page()!=-1)
notebook.get_current_view()->scroll_to(buffer->get_insert(), 0.0, 1.0, 0.5);
}
}
catch(const std::exception &e) {}

Loading…
Cancel
Save