Skip to content

Commit 2c13cc9

Browse files
committed
Fix XY, XYZ and diff autoscale button response
The autoscale and autotics buttons both have multiple callbacks. Turns out the order of the callbacks was important. Worked for main time-series plot, others the order was backwards.
1 parent 4cbbf2f commit 2c13cc9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

ed_diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ static void CreateDiffParmsWindow()
136136
XtManageChild(RC[4]);
137137

138138
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetDiffAutoScale, NULL);
139+
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetDiffAutoTics, NULL);
139140
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyDiffParms, NULL);
140141
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyDiffParms, NULL);
141-
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetDiffAutoTics, NULL);
142142

143143
for (i = 0; i < TOTAL_PARMS-1; ++i)
144144
if (parmsText[i])

ed_xy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ static void CreateXYParmsWindow()
162162
XtManageChild(RC[2]); XtManageChild(RC[3]);
163163
XtManageChild(RC[4]);
164164

165-
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
166165
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetXYAutoScale, NULL);
167-
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
168166
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetXYAutoTics, NULL);
167+
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
168+
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
169169

170170
for (i = 0; i < TOTAL_PARMS-1; ++i)
171171
if (parmsText[i])

ed_xyz.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ static void CreateTrackParmsWindow()
128128
XtManageChild(RC[2]); XtManageChild(RC[3]);
129129
XtManageChild(RC[4]);
130130

131-
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
132-
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
133131
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetTrackAutoScale, NULL);
134132
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetTrackAutoTics, NULL);
133+
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
134+
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
135135

136136
for (i = 0; i < TOTAL_PARMS-1; ++i)
137137
if (parmsText[i])

fbr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static String fallback_resources[] =
5454
"*XmTextField.foreground: black",
5555
"*XmForm.horizontalSpacing: 4",
5656
"*XmForm.verticalSpacing: 4",
57-
"*topLevelShell.title: ncplot 4.9.13",
57+
"*topLevelShell.title: ncplot 4.9.14",
5858
"*topLevelShell.iconName: ncplot",
5959
"*topLevelShell.allowShellResize: True",
6060
"*topLevelShell.x: 0",

ncplot.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Spec file for ncplot
22
Name: ncplot
33
Version: 4.9
4-
Release: 13%{?dist}
4+
Release: 14%{?dist}
55
License: GPL
66
Group: System Environment/Daemons
77
Url: http://www.eol.ucar.edu/

0 commit comments

Comments
 (0)