Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2017-02-05 19:25:12 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-02-05 19:25:12 +0300
commit1807c099866857c60535aa9caaacd5c76080862b (patch)
tree254e37c9d072cfa98cc7ceb79f29bf0f70b1a122
parent1a7eeb4feff0c5b4117010e34fb231c27526590e (diff)
Cleanup: Add assert, remove unused variable
-rw-r--r--source/blender/editors/interface/table.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/interface/table.c b/source/blender/editors/interface/table.c
index 514af17131f..d2a977677d4 100644
--- a/source/blender/editors/interface/table.c
+++ b/source/blender/editors/interface/table.c
@@ -99,9 +99,6 @@ typedef struct uiTableColumn {
/* -------------------------------------------------------------------- */
struct TableColumnDrawInfo {
- /* Total width of all columns. */
- unsigned int totwidth_columns;
-
/* While drawing: Total width of the already drawn columns depending on alignment (left of right). */
unsigned int totwidth_left;
unsigned int totwidth_right;
@@ -280,6 +277,7 @@ void UI_table_max_width_set(uiTable *table, const unsigned int max_width)
void UI_table_horizontal_flow_max_height_set(uiTable *table, const unsigned int max_height)
{
TableHorizontalFlow *horizontal_table = (TableHorizontalFlow *)table;
+ BLI_assert(table->flow_direction == TABLE_FLOW_HORIZONTAL);
horizontal_table->max_height = max_height;
}