From 85ee18100e392214445dd12e9c007f59ed8d28d7 Mon Sep 17 00:00:00 2001 From: chriszero Date: Fri, 22 May 2015 19:40:31 +0200 Subject: Fixes missing token in header, infopane and grids --- viewGridNavigator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewGridNavigator.cpp') diff --git a/viewGridNavigator.cpp b/viewGridNavigator.cpp index 017c448..acae152 100644 --- a/viewGridNavigator.cpp +++ b/viewGridNavigator.cpp @@ -121,13 +121,13 @@ void cViewGridNavigator::SetGridElementData(cGridElement *obj) // fill data obj->SetPosition(x, y); obj->AddTokens(m_pGrid, true, std::bind(&cViewGridNavigator::ReDraw, this, std::placeholders::_1)); - m_pGrid->SetGrid(obj->GridElementId(), x, y, width, height); - obj->InitFinished(); // set GridDimensions m_pGrid->AddIntToken("columns", m_columns); m_pGrid->AddIntToken("rows", m_rows); m_pGrid->AddIntToken("position", obj->AbsolutePosition); m_pGrid->AddIntToken("totalcount", m_vElements.size()); + m_pGrid->SetGrid(obj->GridElementId(), x, y, width, height); + obj->InitFinished(); } else { obj->SetPosition(x, y); m_pGrid->MoveGrid(obj->GridElementId(), x, y, width, height); -- cgit v1.2.3