diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-08 05:31:41 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-08 05:31:41 +0400 |
commit | 594eb6218c04d64d2ecba1f896b427285db7dcb7 (patch) | |
tree | 58fbd13e2f5361a4d1abdd75905f35c5f9be1deb | |
parent | 634dfcdeccc6567af58cab35196a4639cbc1dd68 (diff) |
fix [#34905] Text editor: replacing matches by empty string not allowed
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |