# HG changeset patch # User Teemu Piippo # Date 1487052958 -7200 # Node ID 825dd975588ddd402ceba6e24a4c18fe6e2022b0 # Parent 03aa7091cb4a5b2817af56b80c47f4df9a94cd79 Fixed the free camera icon not showing up anymore. diff -r 03aa7091cb4a -r 825dd975588d src/glRenderer.cpp --- a/src/glRenderer.cpp Tue Feb 14 08:13:26 2017 +0200 +++ b/src/glRenderer.cpp Tue Feb 14 08:15:58 2017 +0200 @@ -103,12 +103,10 @@ for (CameraIcon& cameraIcon : m_cameraIcons) { int row = i / columns; - int column; + int column = i % columns; - if (i < firstAtLastRow) - column = i % columns; - else - column = i + columns - (countof(m_cameras) % columns); + if (i >= firstAtLastRow) + column += columns - (countof(m_cameras) % columns); int x1 = width() - 48 + (column * 16) - 1; int y1 = (row * 16) + 1;