summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/gradient_button_cell.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/gradient_button_cell.mm b/chrome/browser/cocoa/gradient_button_cell.mm
index a0b31522..4e6462d 100644
--- a/chrome/browser/cocoa/gradient_button_cell.mm
+++ b/chrome/browser/cocoa/gradient_button_cell.mm
@@ -256,8 +256,10 @@
if (isTemplate) {
NSColor* color = [theme iconColorForStyle:GTMThemeStyleToolBarButton
state:YES];
- [color set];
- NSRectFillUsingOperation(cellFrame,NSCompositeSourceAtop);
+ if (color) {
+ [color set];
+ NSRectFillUsingOperation(cellFrame, NSCompositeSourceAtop);
+ }
}
CGContextEndTransparencyLayer(context);