From 55ad8234a16ed47220339fbd82749fde96b1050f Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Sat, 24 Nov 2018 19:43:03 -0500 Subject: [PATCH] bandaid to make sure cd bars dont go outside of bounds --- Themes/Til Death/BGAnimations/_chorddensitygraph.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Themes/Til Death/BGAnimations/_chorddensitygraph.lua b/Themes/Til Death/BGAnimations/_chorddensitygraph.lua index ee69d65f31..29c2b7620a 100644 --- a/Themes/Til Death/BGAnimations/_chorddensitygraph.lua +++ b/Themes/Til Death/BGAnimations/_chorddensitygraph.lua @@ -72,7 +72,7 @@ local function updateGraphMultiVertex(parent, realgraph) for column = 1,numberOfColumns do if graphVectors[density][column] > 0 then local barColor = getColorForDensity(density, ncol) - makeABar(verts, column * columnWidth, yOffset, columnWidth, graphVectors[density][column] * 2 * hodth, barColor) + makeABar(verts, math.min(column * columnWidth, wodth), yOffset, columnWidth, graphVectors[density][column] * 2 * hodth, barColor) end end end