From 9e7c30f00a729cfc5478936d116f6e4ca1c3f585 Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Mon, 6 Mar 2017 16:01:40 -0800 Subject: [PATCH] [views_vtab] top_time crash --- src/views_vtab.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views_vtab.cc b/src/views_vtab.cc index c38d61b6..80ce7061 100644 --- a/src/views_vtab.cc +++ b/src/views_vtab.cc @@ -219,7 +219,7 @@ static int vt_column(sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int col) case 5: { text_time_translator *time_source = dynamic_cast(tc.get_sub_source()); - if (time_source != NULL) { + if (time_source != NULL && tc.get_inner_height() > 0) { char timestamp[64]; sql_strftime(timestamp, sizeof(timestamp), time_source->time_for_row(tc.get_top()), 0, 'T');