[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31055] trunk/blender/source/blender/ editors/space_text/text_ops.c: patch [#23185] Mark All in Text Editor always reports "Text not found" when wrap is off
Campbell Barton
ideasman42 at gmail.com
Thu Aug 5 03:46:35 CEST 2010
Revision: 31055
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31055
Author: campbellbarton
Date: 2010-08-05 03:46:34 +0200 (Thu, 05 Aug 2010)
Log Message:
-----------
patch [#23185] Mark All in Text Editor always reports "Text not found" when wrap is off
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_text/text_ops.c
Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c 2010-08-05 01:42:34 UTC (rev 31054)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c 2010-08-05 01:46:34 UTC (rev 31055)
@@ -2366,6 +2366,7 @@
SpaceText *st= CTX_wm_space_text(C);
Text *start= NULL, *text= st->text;
int flags, first= 1;
+ int found = 0;
char *tmp;
if(!st->findstr[0] || (mode == TEXT_REPLACE && !st->replacestr[0]))
@@ -2431,9 +2432,10 @@
first= 1;
}
else {
- BKE_reportf(op->reports, RPT_ERROR, "Text not found: %s", st->findstr);
+ if(!found) BKE_reportf(op->reports, RPT_ERROR, "Text not found: %s", st->findstr);
break;
}
+ found = 1;
} while(mode==TEXT_MARK_ALL);
return OPERATOR_FINISHED;
More information about the Bf-blender-cvs
mailing list