From a52b792c75ad3f2e6b4215608491913b9e71e919 Mon Sep 17 00:00:00 2001 From: "neil@parkwaycc.co.uk" Date: Sun, 15 Apr 2007 04:25:53 -0700 Subject: [PATCH] Fix tooltip crash (regression from bug 376802) b=377473 r+sr=jst --- layout/xul/base/src/nsXULTooltipListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/xul/base/src/nsXULTooltipListener.cpp b/layout/xul/base/src/nsXULTooltipListener.cpp index 12f5eb1dc076..f63e7de94b4e 100644 --- a/layout/xul/base/src/nsXULTooltipListener.cpp +++ b/layout/xul/base/src/nsXULTooltipListener.cpp @@ -486,7 +486,7 @@ nsXULTooltipListener::LaunchTooltip(nsIContent* aTarget, PRInt32 aX, PRInt32 aY) PRInt32 x = aX; PRInt32 y = aY; #ifdef MOZ_XUL - if (mNeedTitletip) { + if (mIsSourceTree && mNeedTitletip) { nsCOMPtr obx; GetSourceTreeBoxObject(getter_AddRefs(obx)); #ifdef DEBUG_crap