From e7402803dfa7a41c8f9f8a21c138e83861ffa4d6 Mon Sep 17 00:00:00 2001 From: Liang Chang Date: Fri, 12 Feb 2021 18:25:25 +0800 Subject: [PATCH] dtcm: fix a segfault that occurred when opening the "Appointment List..." in the "View" menu. --- cde/programs/dtcm/dtcm/editor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cde/programs/dtcm/dtcm/editor.c b/cde/programs/dtcm/dtcm/editor.c index 0a9d7e624..193c99782 100644 --- a/cde/programs/dtcm/dtcm/editor.c +++ b/cde/programs/dtcm/dtcm/editor.c @@ -1922,6 +1922,12 @@ show_editor_view(Calendar *c, Glance glance) { Editor *e = (Editor *)c->editor; Props_pu *p = (Props_pu *)c->properties_pu; + if (get_data_version(c->cal_handle) <= CMS_VERS_2) { + backend_err_msg(c->frame, c->view->current_calendar, + CSA_E_NOT_SUPPORTED, p->xm_error_pixmap); + return; + } + if (!e->view_frame) { e->cal = c; e_build_view_popup(e);