Skip to content

Commit

Permalink
Ignore classic history when modern session starts
Browse files Browse the repository at this point in the history
See troubles found in #3844.
  • Loading branch information
PaulWessel committed Aug 5, 2020
1 parent e9dad2d commit fcfb659
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -17533,7 +17533,9 @@ int gmt_manage_workflow (struct GMTAPI_CTRL *API, unsigned int mode, char *text)
}
}
}
if (error) return (error); /* Bail at this point */
if (error) return (error); /* Bail at this point */
gmt_reset_history (API->GMT); /* No old classic history shall affect a new modern mode session */

gmt_conf (API->GMT); /* Get the original system defaults */
if (!clean_start) gmt_getdefaults (API->GMT, NULL); /* Overload user defaults */
snprintf (dir, PATH_MAX, "%s/%s", API->gwf_dir, GMT_SETTINGS_FILE); /* Reuse dir string for saving gmt.conf to this dir */
Expand Down

0 comments on commit fcfb659

Please sign in to comment.