Avoid maybe unintialised warning in struct UniscribeRun

See: #394
This commit is contained in:
Jonathan G Rennison
2022-06-25 11:40:37 +01:00
parent 18efab1dbb
commit 0ed30d0200

View File

@@ -50,7 +50,7 @@ struct UniscribeRun {
std::vector<GOFFSET> offsets; std::vector<GOFFSET> offsets;
int total_advance; int total_advance;
UniscribeRun(int pos, int len, Font *font, SCRIPT_ANALYSIS &sa) : pos(pos), len(len), font(font), sa(sa) {} UniscribeRun(int pos, int len, Font *font, SCRIPT_ANALYSIS &sa) : pos(pos), len(len), font(font), sa(sa), total_advance(0) {}
}; };
/** Break a string into language formatting ranges. */ /** Break a string into language formatting ranges. */