summaryrefslogtreecommitdiffstats
path: root/ksvg/plugin/backends
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-08-18 13:00:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-08-18 13:00:15 +0200
commita23a5364c5e45e5f8b5f849023f34ee7c0393aa5 (patch)
tree544d912d530fd326687596aaac53e9777dc5dd67 /ksvg/plugin/backends
parent40703895dafd2c0ded5aa76c39d02233934c9863 (diff)
downloadtdegraphics-a23a5364c5e45e5f8b5f849023f34ee7c0393aa5.tar.gz
tdegraphics-a23a5364c5e45e5f8b5f849023f34ee7c0393aa5.zip
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ksvg/plugin/backends')
-rw-r--r--ksvg/plugin/backends/libart/LibartCanvas.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ksvg/plugin/backends/libart/LibartCanvas.cpp b/ksvg/plugin/backends/libart/LibartCanvas.cpp
index 03b18f06..f46051f5 100644
--- a/ksvg/plugin/backends/libart/LibartCanvas.cpp
+++ b/ksvg/plugin/backends/libart/LibartCanvas.cpp
@@ -75,11 +75,11 @@ ArtSVP *art_svp_from_rect(int x0, int y0, int x1, int y1)
{
ArtVpath vpath[] =
{
- { ART_MOVETO, x0, y0 },
- { ART_LINETO, x0, y1 },
- { ART_LINETO, x1, y1 },
- { ART_LINETO, x1, y0 },
- { ART_LINETO, x0, y0 },
+ { ART_MOVETO, (double)x0, (double)y0 },
+ { ART_LINETO, (double)x0, (double)y1 },
+ { ART_LINETO, (double)x1, (double)y1 },
+ { ART_LINETO, (double)x1, (double)y0 },
+ { ART_LINETO, (double)x0, (double)y0 },
{ ART_END, 0, 0}
};