Skip to content

Commit

Permalink
fixed the problem of saving and re loading bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanho committed Jul 31, 2024
1 parent f07f8e0 commit 4b3970e
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/ucar/unidata/idv/control/TimeHeightControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1152,12 +1152,6 @@ static public class MyTimeHeightControl extends TimeHeightControl {

ContourInfo contourInfo;

private Color color;

private String OldSmoothingType = LABEL_NONE;

private int OldSmoothingFactor = 0;

public MyTimeHeightControl() {
setAttributeFlags(FLAG_COLORTABLE | FLAG_CONTOUR | FLAG_DISPLAYUNIT | FLAG_SMOOTHING );
}
Expand Down Expand Up @@ -1344,22 +1338,7 @@ protected void displayTHForCoord(FieldImpl fi, int NN)

} // end method displayTHForCoord

/**
* Use the value of the smoothing type and weight to subset the data.
*
* @throws RemoteException Java RMI problem
* @throws VisADException VisAD problem
*/
protected void applySmoothing() throws VisADException, RemoteException {
if (checkFlag(FLAG_SMOOTHING)) {
if ( !getSmoothingType().equals(OldSmoothingType)
|| (getSmoothingFactor() != OldSmoothingFactor)) {
OldSmoothingType = getSmoothingType();
OldSmoothingFactor = getSmoothingFactor();
loadProfile(getPosition());
}
}
}

protected String getTitle() {
//Use the bottom legend text as the window title
return " ";
Expand Down

0 comments on commit 4b3970e

Please sign in to comment.