Patch forTCustomMaskEdit to correct behaviour when pasting from clipboard
Original Reporter info from Mantis: Lutz Maendle @lmaendle
-
Reporter name: Lutz Mändle
Original Reporter info from Mantis: Lutz Maendle @lmaendle
- Reporter name: Lutz Mändle
Description:
In TCustomMaskEdit.CanInsertChar the value ranges for the various tMaskedType cases of the variable current don't matching the value ranges used in TCustomMaskEdit.CharMatchesMask.
When pasting from clipboard this leads to the effect, that on positions where chars are not mandatory, no spaces can inserted.
The attached patch corrects the value ranges in TCustomMaskEdit.CanInsertChar, so that pasting works as expected.
Mantis conversion info:
- Mantis ID: 30481
- Version: 1.6
- Fixed in revision: r52839 (#298e1155)
- Target version: 1.8
- LazTarget: 1.6.2