mirror of https://github.com/buggins/dlangui.git
fix segfault because of _nullDrawable
This commit is contained in:
parent
b8f8f97634
commit
ecf2c1791a
|
@ -1139,8 +1139,9 @@ class CombinedDrawable : Drawable {
|
||||||
this(uint backgroundColor, string backgroundImageId, string borderDescription) {
|
this(uint backgroundColor, string backgroundImageId, string borderDescription) {
|
||||||
background =
|
background =
|
||||||
(backgroundImageId !is null) ? drawableCache.get(backgroundImageId) :
|
(backgroundImageId !is null) ? drawableCache.get(backgroundImageId) :
|
||||||
(!backgroundColor.isFullyTransparentColor) ? new SolidFillDrawable(backgroundColor) :
|
(!backgroundColor.isFullyTransparentColor) ? new SolidFillDrawable(backgroundColor) : null;
|
||||||
new EmptyDrawable;
|
if (background is null)
|
||||||
|
background = new EmptyDrawable;
|
||||||
border = borderDescription !is null ? drawableCache.get(borderDescription) : new EmptyDrawable;
|
border = borderDescription !is null ? drawableCache.get(borderDescription) : new EmptyDrawable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue