Opted to undo the -[NSBezierPath setLineDash:] patch's check for

count > _dash_count, as NSZoneRealloc() should be allowed to
reduce the allocated block's size.

Additionally, updated ChangeLog.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39287 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2016-01-17 21:36:14 +00:00
parent d2760ebc1f
commit 0dd7fa30d1
2 changed files with 20 additions and 1 deletions

View file

@ -1,3 +1,22 @@
2016-01-17 Ivan Vucica <ivan@vucica.net>
* Source/NSBezierPath.m (-setLineDash:):
Cherrypicked r39277 by Marcian Lytwtyn <gna@advcsi.com>: NSZoneRealloc
called without saving the return value.
Aside from merging the patch, opted to undo the patch's check for
count > _dash_count, as NSZoneRealloc() should be allowed to reduce the
allocated block's size.
* Source/GSThemeDrawing.m (-drawBoxInClipRect:boxType:...):
Cherrypicked r39276 by Paul Landers <paul.landers@testplant.com>:
Use controlShadowColor when the color for NSBoxSeparator is not set.
Xcode is not setting colors for these types of boxes in xibs.
* Source/NSToolbar.m (-runCustomizationPalette:):
Cherrypicked r39256 by Paul Landers <paul.landers@testplant.com>:
Show toolbar before customizing.
2015-11-19 Riccardo Mottola <rm@gnu.org>
* Images/common_MultipleSelection.tiff

View file

@ -500,7 +500,7 @@ static CGFloat default_miter_limit = 10.0;
if (_dash_pattern == NULL)
_dash_pattern = NSZoneMalloc(myZone, count * sizeof(CGFloat));
else if (count > _dash_count)
else
_dash_pattern = NSZoneRealloc(myZone, _dash_pattern, count * sizeof(CGFloat));
_dash_count = count;