summaryrefslogtreecommitdiff
path: root/rotord/src/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.h')
-rw-r--r--rotord/src/graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h
index 9266fe3..50f3f87 100644
--- a/rotord/src/graph.h
+++ b/rotord/src/graph.h
@@ -106,7 +106,7 @@ namespace Rotor {
RsvgDimensionData dims;
rsvg_handle_get_dimensions(rsvg,&dims);
cerr<<"Rotor: SVG loaded "<<inputfilename<<" , "<<dims.width<<"x"<<dims.height<<endl;
- cv::Mat cp=cv::Mat(h,w,CV_8UC4);
+ cv::Mat cp=cv::Mat::zeros(h,w,CV_8UC4);
cv::Mat co=cv::Mat(h,w,CV_8UC3);
cairo_surface_t * cs = cairo_image_surface_create_for_data (cp.data,
CAIRO_FORMAT_RGB24,