1
0
Fork 0

Canvas: Fix stupid off-by-one error

This commit is contained in:
Thomas Geymayer 2012-08-13 20:29:08 +02:00
parent 875b59952b
commit ec73c62da5

View file

@ -231,7 +231,7 @@ canvas::Placements GUIMgr::addPlacement( const SGPropertyNode* node,
canvas::Placements placements;
for( size_t i = 0; i < _elements.size(); ++i )
{
if( placement_index > 0 && static_cast<int>(i) != placement_index )
if( placement_index >= 0 && static_cast<int>(i) != placement_index )
continue;
canvas::WindowPtr window = getWindow(i);