Index: ui/gfx/paint_vector_icon.cc |
diff --git a/ui/gfx/paint_vector_icon.cc b/ui/gfx/paint_vector_icon.cc |
index 7121fde314d5a6933fd93de8c7773f26c82ceac3..355a48e7cef2edbbcb6f7c0ffd31f678d47b3a8d 100644 |
--- a/ui/gfx/paint_vector_icon.cc |
+++ b/ui/gfx/paint_vector_icon.cc |
@@ -311,7 +311,8 @@ class VectorIconSource : public CanvasImageSource { |
// CanvasImageSource: |
void Draw(gfx::Canvas* canvas) override { |
if (path_.empty()) { |
- PaintVectorIcon(canvas, id_, size_.width(), color_); |
+ if (id_ != VectorIconId::VECTOR_ICON_NONE) |
+ PaintVectorIcon(canvas, id_, size_.width(), color_); |
if (badge_id_ != VectorIconId::VECTOR_ICON_NONE) |
PaintVectorIcon(canvas, badge_id_, size_.width(), color_); |
} else { |