aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Track.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/generic/Track.c b/generic/Track.c
index 2b0fa88..e10448e 100644
--- a/generic/Track.c
+++ b/generic/Track.c
@@ -1821,6 +1821,8 @@ SendTrackToOm(void *ptr,
/* Means a user change has been performed on label_dx label_dy */
*rho = rho_derived ;
}
+#else
+ *rho = rho_derived;
#endif
*theta = track->label_angle;
*visibility = (ISSET(current_item->flags, VISIBLE_BIT) ? 1 : 0 );
@@ -1853,16 +1855,17 @@ SetLabelAngleFromOm(void *ptr, /* No longer in use. */
TrackItem track = (TrackItem) item;
theta %= 360;
-
- if (ISCLEAR(track->flags, FROZEN_LABEL_BIT) &&
- (theta >= 0) && (track->label_angle != theta)) {
+ if (theta < 0) {
+ theta += 360;
+ }
+ if (ISCLEAR(track->flags, FROZEN_LABEL_BIT) && (track->label_angle != theta)) {
track->label_angle = theta;
#ifdef DP
track->label_distance = rho;
#endif
SET(track->flags, POLAR_BIT);
ITEM.Invalidate((Item) item, ZN_COORDS_FLAG);
- ZnGroupSetCallOm(((Item)item)->parent, True);
+ /* ZnGroupSetCallOm(((Item)item)->parent, True);*/
}
}