MouseEvent.java (<init>): fixed field assignment

2004-04-20  Ingo Proetel  <proetel@aicas.com>

	* java/awt/event/MouseEvent.java (<init>): fixed field assignment

From-SVN: r80915
This commit is contained in:
Ingo Proetel 2004-04-20 18:04:50 +00:00 committed by Michael Koch
parent 391d8ef5e0
commit 5ede96a479
2 changed files with 7 additions and 3 deletions

View file

@ -220,11 +220,11 @@ public class MouseEvent extends InputEvent
if ((modifiers & EventModifier.OLD_MASK) != 0)
{
if ((modifiers & BUTTON1_MASK) != 0)
button = BUTTON1;
this.button = BUTTON1;
else if ((modifiers & BUTTON2_MASK) != 0)
button = BUTTON2;
this.button = BUTTON2;
else if ((modifiers & BUTTON3_MASK) != 0)
button = BUTTON3;
this.button = BUTTON3;
}
}