From 594eb6218c04d64d2ecba1f896b427285db7dcb7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Apr 2013 01:31:41 +0000 Subject: [PATCH] fix [#34905] Text editor: replacing matches by empty string not allowed --- source/blender/editors/space_text/text_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index b4dc4f55368..9af9d3c2674 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -2907,7 +2907,7 @@ static int text_find_and_replace(bContext *C, wmOperator *op, short mode) int found = 0; char *tmp; - if (!st->findstr[0] || (mode == TEXT_REPLACE && !st->replacestr[0])) + if (!st->findstr[0]) return OPERATOR_CANCELLED; flags = st->flags;