diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.h | 3 | ||||
-rw-r--r-- | src/Editor.cxx | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index c13114b75..9143ec6e4 100644 --- a/src/Document.h +++ b/src/Document.h @@ -142,6 +142,7 @@ public: // Gateways to modifying document void ModifiedAt(int pos); + void CheckReadOnly(); bool DeleteChars(int pos, int len); bool InsertString(int position, const char *s, int insertLength); int Undo(); @@ -244,8 +245,6 @@ public: int BraceMatch(int position, int maxReStyle); private: - void CheckReadOnly(); - CharClassify::cc WordCharClass(unsigned char ch); bool IsWordStartAt(int pos); bool IsWordEndAt(int pos); diff --git a/src/Editor.cxx b/src/Editor.cxx index a7aff6109..372ba0809 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3413,6 +3413,7 @@ void Editor::ClearDocumentStyle() { } void Editor::Cut() { + pdoc->CheckReadOnly(); if (!pdoc->IsReadOnly() && !SelectionContainsProtected()) { Copy(); ClearSelection(); |