[gxml/gsoc2013: 89/150] Text.vala: add more error checking from spec



commit 72e75522db1468c4ca1539e2d8e812656c4cafb7
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Jul 27 00:01:54 2013 -0400

    Text.vala: add more error checking from spec

 gxml/Text.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gxml/Text.vala b/gxml/Text.vala
index 82598ea..a56698f 100644
--- a/gxml/Text.vala
+++ b/gxml/Text.vala
@@ -77,6 +77,8 @@ namespace GXml {
                public Text split_text (ulong offset) {
                        Text other;
 
+                       this.check_read_only ();
+
                        /* libxml2 doesn't handle this directly, in part because it doesn't
                           allow Text siblings.  Boo! */
                        if (! this.check_index_size ("split_text", this.data.length, offset, null)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]