Skip to content

Commit

Permalink
a little cleanup in selector dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Dec 20, 2024
1 parent 6409b0b commit b1b13e1
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions gui/selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -5451,7 +5451,7 @@ static int maybe_increase_vsize (selector *sr, float vsize)
float try = (ch / 18.0) * vsize;
float adj = 0.5;
int sh = get_screen_height();
int ret = vsize;
int ret = (int) vsize;

if (try > vsize) {
ret = (try <= adj * sh)? (int) try : (int) (adj * sh);
Expand All @@ -5477,14 +5477,14 @@ static void selector_init (selector *sr, guint ci, const char *title,
sr->data = data;
sr->extra_data = NULL;

if (MODEL_CODE(ci)) {
if (dataset->v > 9) {
dlgy += 80;
}
if (MODEL_CODE(ci) && dataset->v > 9) {
dlgy += 80;
}

if (ci == ARMA) {
dlgy += 80;
dlgy += dataset->pd > 1 ? 140 : 80;
} else if (ci == GARCH) {
dlgy += 50;
} else if (ci == WLS || ci == INTREG || ci == COUNTMOD ||
ci == DURATION || ci == AR) {
dlgy += 30;
Expand Down Expand Up @@ -5524,16 +5524,6 @@ static void selector_init (selector *sr, guint ci, const char *title,
dlgy += 20;
}

if (ci == ARMA && dataset->pd > 1) {
/* seasonal spins */
dlgy += 60;
}

if (ci == GARCH) {
/* extra check boxes */
dlgy += 50;
}

if (dataset_lags_ok(dataset)) {
if (MODEL_CODE(ci) && ci != ARMA) {
/* lag selector button at foot */
Expand Down

0 comments on commit b1b13e1

Please sign in to comment.