mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
sw_engine: + exceptional handling for safety
This commit is contained in:
parent
c8bc0a91d9
commit
acc2bd2cc2
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue