sw_engine: + exceptional handling for safety

This commit is contained in:
Hermet Park 2020-08-28 11:28:59 +09:00
parent c8bc0a91d9
commit acc2bd2cc2

View file

@ -344,6 +344,7 @@ SwOutline* _genDashOutline(const Shape* sdata, const Matrix* transform)
const float* pattern;
dash.cnt = sdata->strokeDash(&pattern);
if (dash.cnt == 0) return nullptr;
//Is it safe to mutual exclusive?
dash.pattern = const_cast<float*>(pattern);