aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/Curve.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index 5c1e8cc..202e0ce 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -321,13 +321,13 @@ Clone(ZnItem item)
ZnLineEndDuplicate(cv->last_end);
}
if (cv->tile != ZnUnspecifiedImage) {
- cv->tile = ZnGetImageByValue(cv->tile);
+ cv->tile = ZnGetImageByValue(cv->tile, ZnUpdateItemImage, item);
}
if (cv->line_pattern != ZnUnspecifiedImage) {
- cv->line_pattern = ZnGetImageByValue(cv->line_pattern);
+ cv->line_pattern = ZnGetImageByValue(cv->line_pattern, NULL, NULL);
}
if (cv->marker != ZnUnspecifiedImage) {
- cv->marker = ZnGetImageByValue(cv->marker);
+ cv->marker = ZnGetImageByValue(cv->marker, NULL, NULL);
}
cv->line_color = ZnGetGradientByValue(cv->line_color);
cv->fill_color = ZnGetGradientByValue(cv->fill_color);
@@ -377,15 +377,15 @@ Destroy(ZnItem item)
ZnFreeGradient(cv->gradient);
}
if (cv->tile != ZnUnspecifiedImage) {
- ZnFreeImage(cv->tile);
+ ZnFreeImage(cv->tile, ZnUpdateItemImage, item);
cv->tile = ZnUnspecifiedImage;
}
if (cv->line_pattern != ZnUnspecifiedImage) {
- ZnFreeImage(cv->line_pattern);
+ ZnFreeImage(cv->line_pattern, NULL, NULL);
cv->line_pattern = ZnUnspecifiedImage;
}
if (cv->marker != ZnUnspecifiedImage) {
- ZnFreeImage(cv->marker);
+ ZnFreeImage(cv->marker, NULL, NULL);
cv->marker = ZnUnspecifiedImage;
}
ZnFreeGradient(cv->fill_color);
@@ -458,7 +458,7 @@ Configure(ZnItem item,
XColor *color;
unsigned short alpha;
- status = ZnConfigureAttributes(wi, item, cv_attrs, argc, argv, flags);
+ status = ZnConfigureAttributes(wi, item, item, cv_attrs, argc, argv, flags);
if (cv->gradient &&
(ISSET(*flags, ZN_BORDER_FLAG) || (cv->relief == ZN_RELIEF_FLAT))) {