bug fix [ 1660595 ] Date field: incorrect functionality on paste

This commit is contained in:
teo_sarca 2007-02-15 13:23:23 +00:00
parent ca06c79162
commit 91c7b319e4
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ public final class MDocDate extends PlainDocument implements CaretListener
if (offset == 0 || length == 0)
{
// empty the field
if (length == m_mask.length() || length == 0)
// if the length is 0 or greater or equal with the mask length - teo_sarca, [ 1660595 ] Date field: incorrect functionality on paste
if (length >= m_mask.length() || length == 0)
super.remove(offset, length);
return;
}