Skip to content

Commit

Permalink
require at least 2 points for a line
Browse files Browse the repository at this point in the history
git-svn-id: https://nekonme.googlecode.com/svn/trunk@1859 1509560c-5e2a-0410-865c-31c25e1cfdef
  • Loading branch information
hughsando committed Jul 22, 2012
1 parent 8527ae5 commit 55d7aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/common/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void Graphics::Flush(bool inLine, bool inFill, bool inTile)

if (inLine)
{
if (mLineJob.mStroke && mLineJob.mCommand0 <n)
if (mLineJob.mStroke && mLineJob.mCommand0 <n-1)
{
mLineJob.mStroke->IncRef();
mLineJob.mCommandCount = n-mLineJob.mCommand0;
Expand Down

0 comments on commit 55d7aa1

Please sign in to comment.