<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -532,6 +532,8 @@ function oUF.ColorGradient(perc, ...)
 
 	local num = select('#', ...) / 3
 
+	-- Translate divison by zeros into 1, so we don't blow select.
+	if(perc == math.huge) then perc = 1 end
 	local segment, relperc = math.modf(perc*(num-1))
 	local r1, g1, b1, r2, g2, b2 = select((segment*3)+1, ...)
 </diff>
      <filename>ouf.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>04f403ab01c85457cdc9137aec54fa518e6ba9e8</id>
    </parent>
  </parents>
  <author>
    <name>Trond A Ekseth</name>
    <email>troeks@gmail.com</email>
  </author>
  <url>http://github.com/Zariel/ouf/commit/13d3e56b7d2f0427415cc02fafbdd90fe6b86d2d</url>
  <id>13d3e56b7d2f0427415cc02fafbdd90fe6b86d2d</id>
  <committed-date>2009-11-09T12:26:39-08:00</committed-date>
  <authored-date>2009-11-09T12:26:39-08:00</authored-date>
  <message>Translate divison by zeros into 1 in the ColorGradient function.

This is clearly because 1/0 == 1! Just like .999 == 1!</message>
  <tree>16942c8d3fee728b1a620310ae98e59235669b9e</tree>
  <committer>
    <name>Trond A Ekseth</name>
    <email>troeks@gmail.com</email>
  </committer>
</commit>
