Skip to content

Commit

Permalink
Merge pull request #24 from jhps/layer-expose-fix
Browse files Browse the repository at this point in the history
Fix crash on expose when grid is selected, closes #20.
  • Loading branch information
khaledhosny committed Aug 22, 2012
2 parents 746d175 + 54b7666 commit 6670005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fontforge/charview.c
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,8 @@ static void CVExpose(CharView *cv, GWindow pixmap, GEvent *event ) {
CVDrawBB(cv,pixmap,&rf->bb);
}
}
CVDrawLayerSplineSet(cv,pixmap,&cv->b.sc->layers[layer],foreoutlinecol,
if ( layer>=0 )
CVDrawLayerSplineSet(cv,pixmap,&cv->b.sc->layers[layer],foreoutlinecol,
cv->showpoints ,&clip,strokeFillMode);

if ( cv->freehand.current_trace!=NULL )
Expand Down

0 comments on commit 6670005

Please sign in to comment.