From 8df7a51a46779301e51d67254989f53806df84cc Mon Sep 17 00:00:00 2001 From: Marcian Lytwyn Date: Thu, 10 Dec 2015 20:19:26 +0000 Subject: [PATCH] Do not draw borders for Circular types git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39230 72102866-910b-0410-8b05-ffd578937521 --- Source/NSButtonCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSButtonCell.m b/Source/NSButtonCell.m index 5cbbc9775..4e002de02 100644 --- a/Source/NSButtonCell.m +++ b/Source/NSButtonCell.m @@ -1117,7 +1117,7 @@ typedef struct _GSButtonCellFlags // The inside check could also be done via a track rect, but then this would // only work with specially prepared controls. Therefore we dont use // _mouse_inside here. - if ((_cell.is_bordered) + if ((_cell.is_bordered) && (_bezel_style != NSCircularBezelStyle) && (!_shows_border_only_while_mouse_inside || [controlView mouse: [[controlView window] mouseLocationOutsideOfEventStream] inRect: cellFrame]))