﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
524	Replace fails when Old and New are the same	Christian Paz	Víctor de Buen Remiro	"When you call the function Replace with the same character to be replaced and being replaced, there is an error.

I think there are two possible solutions, or comparing oldChar and newChar, or changing line:

while(pos=strchr(pos, oldChar)) 

by 

while(pos=strchr(pos+1, oldChar)) 

in BInt BText::Replace(BChar oldChar, BChar newChar)

It could be great if we take advantage of this change to allow replacing strings as well as unit characters.

Thanks in advance,
Christian"	defect	closed	highest		Text	1.1.6	normal	fixed		
