From 91c7f0ae45f00fbac0d78cb9fdc6d07802ff7b83 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 1 Apr 2008 22:29:50 +0000 Subject: [PATCH] fix overlapping dock badging --- macosx/BadgeView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/BadgeView.m b/macosx/BadgeView.m index 263d7856d..6225c947c 100644 --- a/macosx/BadgeView.m +++ b/macosx/BadgeView.m @@ -120,7 +120,7 @@ //string is in center of image NSSize stringSize = [string sizeWithAttributes: fAttributes]; - NSRect stringRect; + NSRect stringRect = badgeRect; stringRect.origin.x += (badgeRect.size.width - stringSize.width) * 0.5; stringRect.origin.y += (badgeRect.size.height - stringSize.height) * 0.5 + 1.0; //adjust for shadow stringRect.size = stringSize;