diff --git a/specter/lib/Table.cpp b/specter/lib/Table.cpp index 49773032c..a5ee58c6a 100644 --- a/specter/lib/Table.cpp +++ b/specter/lib/Table.cpp @@ -73,11 +73,11 @@ void Table::RowsView::_setRowVerts(const boo::SWindowRect& sub, const boo::SWind int startIdx = std::max(0, int(m_t.m_rows) - idx); size_t r, c; - for (r=0 ; r= scissor.location[1] ; ++r) + for (r=0, c=0 ; r= scissor.location[1] ; ++r) { const Zeus::CColor& color = (r&1) ? theme.tableCellBg1() : theme.tableCellBg2(); int xOff = 0; - for (c=0 ; cload(m_verts, sizeof(SolidShaderVert) * 6 * r * c); + if (r * c) + m_vertsBuf->load(m_verts, sizeof(SolidShaderVert) * 6 * r * c); } void Table::setMultiplyColor(const Zeus::CColor& color)