diff options
Diffstat (limited to 'src/trace')
| -rw-r--r-- | src/trace/autotrace/inkscape-autotrace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trace/autotrace/inkscape-autotrace.cpp b/src/trace/autotrace/inkscape-autotrace.cpp index 9ce4132bb..58abe8c61 100644 --- a/src/trace/autotrace/inkscape-autotrace.cpp +++ b/src/trace/autotrace/inkscape-autotrace.cpp @@ -65,7 +65,7 @@ static guchar* to_3channels(GdkPixbuf* input) { for(int chan=0;chan<3;chan++) { guchar *pnew = (pix + row * rs + col * 3 + chan); guchar *pold = (pix + row * rs + col * 4 + chan); - out[x++] = ((*pold) * alpha / 256 + white); + out[x++] = (char)(((int)(*pold) * (int)alpha / 256) + white); } } } |
