fix [#26610] Pressing the ENTER key while editing a Text Object crashes Blender.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 10:41:53 +0000 (10:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 25 Mar 2011 10:41:53 +0000 (10:41 +0000)
source/blender/editors/curve/editfont.c

index 2f6bd0abcef49e8f7024962ce92a687bcb415802..34fe2d68cc719fe142de7e7be3e30bdf1c1a6435 100644 (file)
@@ -1095,7 +1095,7 @@ static int line_break_exec(bContext *C, wmOperator *op)
        Object *obedit= CTX_data_edit_object(C);
        Curve *cu= obedit->data;
        EditFont *ef= cu->editfont;
-       int ctrl= RNA_enum_get(op->ptr, "ctrl");
+       const int ctrl= RNA_boolean_get(op->ptr, "ctrl");
 
        if(ctrl) {
                insert_into_textbuf(obedit, 1);