2008-12-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Thu, 11 Dec 2008 11:37:57 +0000 (11:37 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Thu, 11 Dec 2008 11:37:57 +0000 (11:37 -0000)
commit0b8e5472358831fc34b25d2fa0fd30a67e172ba3
tree64e87d9f70229304e5bdecdacf95ba289323b760
parente33c28c55d7651515d383eb0c318fe3da8dbe23f
2008-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* MaskedTextBox.cs: MaskedTextService.Replace doesn't expect the
length of the text, but the end position, so we need to substract 1 to
have a valid value. Also, in the same InputText method, don't use
SelectionLength as the length of the text, since the selected text
could actually be empty, but we need to set the value anyway.
Fixes #457370.

svn path=/trunk/mcs/; revision=121285
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MaskedTextBox.cs