developer/check: configure: WARNING: filterdiff not installed; build will not be...
[oi-userland.git] / components / image / inkscape / patches / 08-inkscape-svg-length.patch
blobba33299a80d80c187baefa06e89848d16adb5b31
1 --- inkscape-1.2_2022-05-15_dc2aedaf03/src/svg/svg-length.cpp.old 2022-05-17 12:42:24.481453485 +0000
2 +++ inkscape-1.2_2022-05-15_dc2aedaf03/src/svg/svg-length.cpp 2022-05-17 12:46:40.242900440 +0000
3 @@ -82,13 +82,13 @@
4 /* Determine the actual number of fractional digits */
5 fprec = MAX(static_cast<int>(fprec), static_cast<int>(tprec) - idigits);
6 /* Round value */
7 - val += 0.5 / pow(10.0, fprec);
8 + val += 0.5 / pow(10.0, static_cast<int>(fprec));
9 /* Extract integral and fractional parts */
10 double dival = floor(val);
11 double fval = val - dival;
12 /* Write integra */
13 if (idigits > (int)tprec) {
14 - buf.append(std::to_string((unsigned int)floor(dival/pow(10.0, idigits-tprec) + .5)));
15 + buf.append(std::to_string((unsigned int)floor(dival/pow(10.0, static_cast<double>(idigits-tprec)) + .5)));
16 for(unsigned int j=0; j<(unsigned int)idigits-tprec; j++) {
17 buf.append("0");