aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/Item.c b/generic/Item.c
index b13db38..43121eb 100644
--- a/generic/Item.c
+++ b/generic/Item.c
@@ -349,7 +349,7 @@ ZnConfigureAttributes(WidgetInfo *wi,
}
else{
image = ZnGetBitmap(wi, str);
- msg = " pattern expected for attribute \"";
+ msg = " bitmap expected for attribute \"";
}
if (image == ZnUnspecifiedImage) {
Tcl_AppendResult(wi->interp, msg, Tcl_GetString(args[i]), "\"", NULL);
@@ -810,7 +810,9 @@ ZnConfigureAttributes(WidgetInfo *wi,
}
switch (desc->type) {
case ZN_CONFIG_ANGLE:
- integer = integer % 360;
+ if ((integer > 360) || (integer < -360)) {
+ integer = integer % 360;
+ }
break;
case ZN_CONFIG_UINT:
if (integer < 0) {