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
This commit is contained in:
Marcian Lytwyn 2015-12-10 20:19:26 +00:00
parent d7655e2512
commit 8df7a51a46

View file

@ -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]))