aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
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();