We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a578f34 commit d1ee708Copy full SHA for d1ee708
src/guiTable.cpp
@@ -183,6 +183,16 @@ void GUITable::setTable(const TableOptions &options,
183
// j is always a column index, 0-based
184
// k is another index, for example an option index
185
186
+ // Handle a stupid error case... (issue #1187)
187
+ if (columns.empty()) {
188
+ TableColumn text_column;
189
+ text_column.type = "text";
190
+ TableColumns new_columns;
191
+ new_columns.push_back(text_column);
192
+ setTable(options, new_columns, content);
193
+ return;
194
+ }
195
+
196
// Handle table options
197
video::SColor default_color(255, 255, 255, 255);
198
s32 opendepth = 0;
0 commit comments