Skip to content

Commit 140b9ca

Browse files
committed
fixed recurring crash when trying to render 0x0 tray icon
1 parent 77921c8 commit 140b9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void Win::timeout() {
275275
}
276276

277277
void Win::set_icon(RStroke stroke, bool invert) {
278-
if (!icon)
278+
if (!icon || icon->get_size() <= 0)
279279
return;
280280
icon->set(stroke->draw(icon->get_size(), 2.0, invert));
281281
set_timeout(10000);

0 commit comments

Comments
 (0)