fix a segfault clicking on a compile error if the compiled file has been closed
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@348 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
74b7f7dfbb
commit
20047f7dab
@ -4,6 +4,8 @@
|
||||
the open file dialog
|
||||
* src/sci_cb.c: fix a segfault when commenting out lines with ctrl-d
|
||||
when no filetype is set
|
||||
* src/utils.c: fix a segfault clicking on a compile error if the
|
||||
compiled file has been closed
|
||||
|
||||
|
||||
2006-05-19 Enrico Troeger <enrico.troeger@uvena.de>
|
||||
|
@ -2218,7 +2218,7 @@ void utils_parse_compiler_error_line(const gchar *string)
|
||||
gint idx = document_get_cur_idx();
|
||||
gint line = -1;
|
||||
|
||||
if (string == NULL) return;
|
||||
if (string == NULL || !doc_list[app->cur_idx].is_valid) return;
|
||||
|
||||
// first get the line
|
||||
switch (doc_list[app->cur_idx].file_type->id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user