From 1f7f7ca14e50be457810efb109a03d98f78726fc Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 14 Feb 2022 18:00:45 -0600 Subject: Fix T95720: Spreadsheet missing volume grid info The cell drawing code in 474adc6f883c2d5a854d7 was missing an implementation for virtual arrays of strings. --- .../editors/space_spreadsheet/spreadsheet_layout.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source') diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc index f4b5ff819ed..29c3c7f5644 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc @@ -247,6 +247,23 @@ class SpreadsheetLayoutDrawer : public SpreadsheetDrawer { } } } + else if (data.type().is()) { + uiDefIconTextBut(params.block, + UI_BTYPE_LABEL, + 0, + ICON_NONE, + data.get(real_index).c_str(), + params.xmin, + params.ymin, + params.width, + params.height, + nullptr, + 0, + 0, + 0, + 0, + nullptr); + } } void draw_float_vector(const CellDrawParams ¶ms, const Span values) const -- cgit v1.2.3