Qt: Fix tile count being way off
Jeffrey Pfau jeffrey@endrift.com
Fri, 21 Oct 2016 03:38:03 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/TilePainter.cpp
→
src/platform/qt/TilePainter.cpp
@@ -55,7 +55,7 @@ }
void TilePainter::setTileCount(int tiles) { m_tileCount = tiles; - if (sizePolicy().verticalPolicy() != QSizePolicy::Fixed) { + if (sizePolicy().horizontalPolicy() != QSizePolicy::Fixed) { // Only manage the size ourselves if we don't appear to have something else managing it int w = width() / m_size; int h = (tiles + w - 1) * m_size / w;