From ed1065ad11626270d87327d389e72e15fc71fb29 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 29 Mar 2010 21:07:51 -0400 Subject: [PATCH] In addon:DisplayTextDump(): If text is "", do nothing. --- Frame.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Frame.lua b/Frame.lua index 2033b10..f32160b 100644 --- a/Frame.lua +++ b/Frame.lua @@ -4307,9 +4307,13 @@ do copy_frame:Hide() function addon:DisplayTextDump(RecipeDB, profession, text) - edit_box:SetText((not RecipeDB and not profession) and text or self:GetTextDump(profession)) - edit_box:HighlightText(0) - edit_box:SetCursorPosition(1) - copy_frame:Show() + local text = (not RecipeDB and not profession) and text or self:GetTextDump(profession) + + if text ~= "" then + edit_box:SetText(text) + edit_box:HighlightText(0) + edit_box:SetCursorPosition(1) + copy_frame:Show() + end end end -- do -- 1.7.9.5