mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
svg_loader SvgLoader: Fix wrong indentation
indent 3 -> 4
This commit is contained in:
parent
6cf2d89571
commit
1bf123ff46
2 changed files with 6 additions and 6 deletions
|
@ -235,16 +235,16 @@ _PARSE_TAG(SvgFillRule, fillRule, FillRule, fillRuleTags, SvgFillRule::Winding)
|
|||
static inline void
|
||||
_parseDashArray(const char *str, SvgDash* dash)
|
||||
{
|
||||
char *end = nullptr;
|
||||
char *end = nullptr;
|
||||
|
||||
while (*str) {
|
||||
while (*str) {
|
||||
// skip white space, comma
|
||||
str = _skipComma(str);
|
||||
(*dash).array.push(strtof(str, &end));
|
||||
str = _skipComma(end);
|
||||
}
|
||||
//If dash array size is 1, it means that dash and gap size are the same.
|
||||
if ((*dash).array.cnt == 1) (*dash).array.push((*dash).array.list[0]);
|
||||
}
|
||||
//If dash array size is 1, it means that dash and gap size are the same.
|
||||
if ((*dash).array.cnt == 1) (*dash).array.push((*dash).array.list[0]);
|
||||
}
|
||||
|
||||
static string* _idFromUrl(const char* url)
|
||||
|
|
|
@ -527,5 +527,5 @@ tuple<vector<PathCommand>, vector<Point>> svgPathToTvgPath(const char* svgPath)
|
|||
setlocale(LC_NUMERIC, curLocale);
|
||||
if (curLocale) free(curLocale);
|
||||
|
||||
return make_tuple(cmds, pts);
|
||||
return make_tuple(cmds, pts);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue