diff options
author | Ivan Zlatev <ivan@ivanz.com> | 2008-02-05 01:20:06 +0300 |
---|---|---|
committer | Ivan Zlatev <ivan@ivanz.com> | 2008-02-05 01:20:06 +0300 |
commit | 533b20e7001da7d843a28116fcdcba3a83b1fe3a (patch) | |
tree | 7ca1a078896409ffbe47b1051edd179b429a65d7 /mcs/class/System.Drawing.Design | |
parent | de8a53ef3ad9c7528e420abf91baa845fb1aaed8 (diff) |
2008-02-04 Ivan N. Zlatev <contact@i-nz.net>
* ColorEditor.cs: Perfom action in OnMouseUp only if in client.
[Fixes bug #358444]
svn path=/trunk/mcs/; revision=94801
Diffstat (limited to 'mcs/class/System.Drawing.Design')
-rw-r--r-- | mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog b/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog index 25000b40147..b58209160e4 100644 --- a/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog +++ b/mcs/class/System.Drawing.Design/System.Drawing.Design/ChangeLog @@ -1,3 +1,8 @@ +2008-02-04 Ivan N. Zlatev <contact@i-nz.net> + + * ColorEditor.cs: Perfom action in OnMouseUp only if in client. + [Fixes bug #358444] + 2007-11-13 Atsushi Enomoto <atsushi@ximian.com> * ToolboxItemCreator.cs, ToolboxService.cs, ToolboxItemContainer.cs: diff --git a/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs b/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs index f6058ecfcb6..728cd95393c 100644 --- a/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs +++ b/mcs/class/System.Drawing.Design/System.Drawing.Design/ColorEditor.cs @@ -344,7 +344,7 @@ namespace System.Drawing.Design protected override void OnMouseUp (MouseEventArgs e)
{
- if (highlighting) {
+ if (highlighting && this.ClientRectangle.Contains (e.X, e.Y)) {
if (ColorChanged != null)
ColorChanged (colors[y / 24, x / 24], EventArgs.Empty);
highlighting = false;
|