Fix shadowing bug

This commit is contained in:
Krzosa Karol
2024-06-28 17:26:28 +02:00
parent d561883144
commit 8528bfefc1

View File

@@ -77,7 +77,7 @@ Layout CalculateLayout(Arena *arena, Buffer &buffer, Font font, float font_size,
{
LayoutRow *row = NULL;
if (last_range->min == last_range->max) {
LayoutRow *row = layout.rows.alloc();
row = layout.rows.alloc();
row->columns.allocator = *arena;
text_offset_x = 0;
} else {