summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <pfaedit@users.sourceforge.net>2011-03-06 06:30:18 -0800
committerGeorge Williams <pfaedit@users.sourceforge.net>2011-03-06 06:30:18 -0800
commit17bceb391d65fb29d983a80750ff043de27b8d37 (patch)
treea5cb7b4c7321db2320abae663c863509e118576c
parentdd3dcba64db15e427c6ae25cf070ba23bbdf628b (diff)
Invoking Expand Stroke caused a crash.
-rw-r--r--fontforge/cvstroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fontforge/cvstroke.c b/fontforge/cvstroke.c
index 6cc2a501..cb88a78d 100644
--- a/fontforge/cvstroke.c
+++ b/fontforge/cvstroke.c
@@ -718,7 +718,7 @@ static void MakeStrokeDlg(void *cv,void (*strokeit)(void *,StrokeInfo *,int),Str
sd->si = si;
yoff = 18;
}
- if ( sd->old_poly==NULL && si->poly!=NULL ) {
+ if ( sd->old_poly==NULL && si!=NULL && si->poly!=NULL ) {
sd->old_poly = si->poly;
si->poly = NULL;
}