Commit c02e4af7 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed segmentation fault when executing command: open tcurve /new

parent 03615140
...@@ -936,6 +936,7 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, QWidget* parent_widget, ...@@ -936,6 +936,7 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, QWidget* parent_widget,
wow = new CoWowQt(toplevel); wow = new CoWowQt(toplevel);
timebox_timecombo->setCurrentIndex(2); timebox_timecombo->setCurrentIndex(2);
toplevel->activate_timecombo(2);
if (!(options & curve_mOptions_Embedded)) { if (!(options & curve_mOptions_Embedded)) {
if (options & curve_mOptions_FullScreen) { if (options & curve_mOptions_FullScreen) {
......
...@@ -1358,7 +1358,9 @@ int GeCurve::configure_axes() ...@@ -1358,7 +1358,9 @@ int GeCurve::configure_axes()
grow_ResetNodraw(growaxis_ctx); grow_ResetNodraw(growaxis_ctx);
grow_Redraw(growaxis_ctx); grow_Redraw(growaxis_ctx);
if (cd->x_data[0]) {
update_times_markers(); update_times_markers();
}
return 1; return 1;
} }
......
...@@ -87,10 +87,11 @@ XttTCurveQt::XttTCurveQt(void* parent_ctx, QWidget* parent_wid, ...@@ -87,10 +87,11 @@ XttTCurveQt::XttTCurveQt(void* parent_ctx, QWidget* parent_wid,
XttTCurveQt::~XttTCurveQt() XttTCurveQt::~XttTCurveQt()
{ {
debug_print("XttTCurveQt::~XttTCurveQt\n");
timerid->remove(); timerid->remove();
delete curve;
if (gcd) { if (gcd) {
delete gcd; delete gcd;
} }
delete wow;
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment