summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrew Haines <andrewd207@aol.com>2014-07-17 23:02:53 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2014-07-17 23:02:53 +0100
commit1bd4b9091d3649f531c77ef0d0d656de4f6e3129 (patch)
tree1458ee7fa8c1a7a0a672ea9c9057b59cdad59ea9 /docs
parenta4dfb826ffcac8d10f319e03f4fcf385b2ea39ae (diff)
downloadfpGUI-1bd4b9091d3649f531c77ef0d0d656de4f6e3129.tar.xz
CanvasBase.GradientFill causes a math error
I've noticed that if Width = 1 then count = 0 and causes a math error in: newcolor.Red := RGBStart.Red + (i * RDiff) div count; I think if ADirection = gdVertical then count := ARect.Bottom - ARect.Top else count := ARect.Right - ARect.Left; Should be if ADirection = gdVertical then count := ARect.Height else count := ARect.Width; But I'm not sure of the reasoning of the paint code. I've only seen this crash on the AlienWindows branch. I get it when moving the splitter in docview all the way to the right side. Andrew
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions