mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
- Move to github - Use last upstream commit, which includes fixes not present in release - Properly use grettext and intltool - Install appdata file provided in upstream repository - Fix error in desktop file [1] - Point WWW to github page - Import patch to fix sporadic crash [2] - Sort plist - Take maintainership obtained from:a255b2af29
[1],140b9cae66
[2]
22 lines
638 B
C++
22 lines
638 B
C++
From 140b9cae66ba874bf0994eea71210baf417a136e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Kondor=20D=C3=A1niel?= <kondor.dani@gmail.com>
|
|
Date: Sat, 22 Sep 2018 22:42:06 +0800
|
|
Subject: [PATCH] fixed recurring crash when trying to render 0x0 tray icon
|
|
|
|
---
|
|
win.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/win.cc b/win.cc
|
|
index da41b0e8..36746430 100644
|
|
--- win.cc
|
|
+++ win.cc
|
|
@@ -275,7 +275,7 @@ void Win::timeout() {
|
|
}
|
|
|
|
void Win::set_icon(RStroke stroke, bool invert) {
|
|
- if (!icon)
|
|
+ if (!icon || icon->get_size() <= 0)
|
|
return;
|
|
icon->set(stroke->draw(icon->get_size(), 2.0, invert));
|
|
set_timeout(10000);
|