[gedit] Check if the error tag was created if not we will get false positives.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Check if the error tag was created if not we will get false positives.
- Date: Tue, 1 Feb 2011 15:31:05 +0000 (UTC)
commit 9b07cf6a4e4fcdf35f9a3006f2b3dc553b7a6930
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Feb 1 16:31:12 2011 +0100
Check if the error tag was created if not we will get false positives.
gedit/gedit-document.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index ae2783c..2b8d788 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1716,6 +1716,11 @@ has_invalid_chars (GeditDocument *doc)
gedit_debug (DEBUG_DOCUMENT);
+ if (doc->priv->error_tag == NULL)
+ {
+ return FALSE;
+ }
+
buffer = GTK_TEXT_BUFFER (doc);
gtk_text_buffer_get_start_iter (buffer, &start);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]