[Bf-blender-cvs] [31bf6edf799] master: Text: line break always returned cancelled

Campbell Barton noreply at git.blender.org
Sun Mar 25 17:51:58 CEST 2018


Commit: 31bf6edf79999d59962bde34076f6ad20a9d1786
Author: Campbell Barton
Date:   Sun Mar 25 17:50:40 2018 +0200
Branches: master
https://developer.blender.org/rB31bf6edf79999d59962bde34076f6ad20a9d1786

Text: line break always returned cancelled

Harmless but incorrect.

===================================================================

M	source/blender/editors/space_text/text_ops.c

===================================================================

diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index 4f0d2c93970..f75cd129f67 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -961,7 +961,7 @@ static int text_line_break_exec(bContext *C, wmOperator *UNUSED(op))
 	text_update_cursor_moved(C);
 	WM_event_add_notifier(C, NC_TEXT | NA_EDITED, text);
 
-	return OPERATOR_CANCELLED;
+	return OPERATOR_FINISHED;
 }
 
 void TEXT_OT_line_break(wmOperatorType *ot)



More information about the Bf-blender-cvs mailing list