[dia] custom-line: don't create OrthConn with LineInfo::default_user_data
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] custom-line: don't create OrthConn with LineInfo::default_user_data
- Date: Wed, 3 Oct 2012 20:02:05 +0000 (UTC)
commit 6248b6642ba4b407d6a74555a5935beb419fb5c2
Author: Hans Breuer <hans breuer org>
Date: Sat Sep 29 22:21:49 2012 +0200
custom-line: don't create OrthConn with LineInfo::default_user_data
The types are unrelated resulting in random memory access, i.e crash
with PyDia creating all objects.
objects/custom_lines/custom_linetypes.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/objects/custom_lines/custom_linetypes.c b/objects/custom_lines/custom_linetypes.c
index 35826ab..1e5ebdf 100644
--- a/objects/custom_lines/custom_linetypes.c
+++ b/objects/custom_lines/custom_linetypes.c
@@ -235,7 +235,7 @@ customline_create(Point *startpoint,
}
if (line_info->type == CUSTOM_LINETYPE_ZIGZAGLINE)
- res = zigzag_ot->ops->create( startpoint, user_data, handle1, handle2 );
+ res = zigzag_ot->ops->create( startpoint, NULL, handle1, handle2 );
else if (line_info->type == CUSTOM_LINETYPE_POLYLINE)
res = polyline_ot->ops->create( startpoint, NULL, handle1, handle2 );
else if (line_info->type == CUSTOM_LINETYPE_BEZIERLINE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]