GP: Fix unreported crash when use Alt key in Surface draw

This commit is contained in:
Antonioya
2018-09-07 09:29:33 +02:00
parent 49fa58e330
commit 9c12f58908

View File

@@ -386,7 +386,7 @@ static void gp_stroke_convertcoords(tGPsdata *p, const int mval[2], float out[3]
/* verify valid zdepth, if it's wrong, the default darwing mode is used
* and the function doesn't return now */
if (*depth <= 1.0f) {
if ((depth == NULL) || (*depth <= 1.0f)) {
return;
}
}