Commit 2578dedb authored by Fabien Parent's avatar Fabien Parent
Browse files

Check for null pointer when scrolling.

parent 219670cb
......@@ -785,6 +785,9 @@ void MainWindow::on_go_next_file(bool move_forward)
bool MainWindow::do_scroll(const Glib::RefPtr<Gtk::TextMark> mark)
{
if (!mark)
return false;
textview_->scroll_to(mark, 0.125);
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment