Kaydet (Commit) 739adde5 authored tarafından Caolán McNamara's avatar Caolán McNamara

detect conditions where loop cannot logically end

Change-Id: I7e2ec1e09614510e6798ba8d5b9990c189a8dbb9
üst 0792aef9
......@@ -269,6 +269,9 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
if( bUseAlternateBresenham )
{
if (rem < 0 && ady <= 0)
return; //break will never be hit under these circumstances
while(true)
{
acc.set(color, rowIter);
......@@ -347,6 +350,9 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
if( bUseAlternateBresenham )
{
if (rem < 0 && adx <= 0)
return; //break will never be hit under these circumstances
while(true)
{
acc.set(color, colIter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment