# HG changeset patch # User Zerotorescue # Date 1288287118 -7200 # Node ID 95c813292a882722e56db48314f0f7747d06ace5 # Parent 26aa2e415c00ad44c93140aa6f6ffc47509d7516 Fixed the ?Hide when below threshold? option. diff -r 26aa2e415c00 -r 95c813292a88 Summary.lua --- a/Summary.lua Thu Oct 28 19:20:52 2010 +0200 +++ b/Summary.lua Thu Oct 28 19:31:58 2010 +0200 @@ -278,7 +278,7 @@ local minimumStock = (values.minimumStock or (values.minimumStock == nil and addon.db.global.defaults.minimumStock)); local showWhenBelow = (values.summaryThresholdShow or (values.summaryThresholdShow == nil and addon.db.global.defaults.summaryThresholdShow)); local priceThreshold = (values.priceThreshold or (values.priceThreshold == nil and addon.db.global.defaults.priceThreshold)); - local hideWhenBelowPriceThreshold = (values.hideFromSummaryWhenBelowPriceThreshold or (values.hideFromSummaryWhenBelowPriceThreshold == nil and addon.db.global.defaults.hideFromSummaryWhenBelowPriceThreshold)); + local hideWhenBelowPriceThreshold = (values.summaryHidePriceThreshold or (values.summaryHidePriceThreshold == nil and addon.db.global.defaults.summaryHidePriceThreshold)); local alwaysGetAuctionValue = (values.alwaysGetAuctionValue or (values.alwaysGetAuctionValue == nil and addon.db.global.defaults.alwaysGetAuctionValue)); -- Make group container @@ -422,7 +422,7 @@ -- Show itemslist for i, item in pairs(itemsCache[groupName]) do - if ( item.count / minimumStock ) < showWhenBelow and not (hideWhenBelowPriceThreshold and item.value < priceThreshold) then + if ( item.count / minimumStock ) < showWhenBelow and not (hideWhenBelowPriceThreshold and item.value < priceThreshold and item.value >= 0) then local btnItemLink = AceGUI:Create("ItemLinkButton"); btnItemLink:SetUserData("exec", function(_, itemId, _, buttonName) local itemName, itemLink = GetItemInfo(itemId);