Skip to content

Commit

Permalink
bandaid to make sure cd bars dont go outside of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 25, 2018
1 parent 3f17b7c commit 55ad823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/Til Death/BGAnimations/_chorddensitygraph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55ad823

Please sign in to comment.