# HG changeset patch # User Wuzzy # Date 1559041676 -7200 # Node ID dc236bcd7309b7ad84fda544647198d624e4fda6 # Parent 57f7d89067ef59245970f924e29e9d69a6c3a2f4 Fix stats screen group boxes sometimes having no spacing diff -r 57f7d89067ef -r dc236bcd7309 QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Tue May 28 01:58:42 2019 +0200 +++ b/QTfrontend/ui/page/pagegamestats.cpp Tue May 28 13:07:56 2019 +0200 @@ -204,6 +204,7 @@ if(maxDataPoints < 2) { labelGraphTitle->hide(); graphic->hide(); + applySpacing(); return; } @@ -275,6 +276,11 @@ labelGraphTitle->show(); gbDetails->show(); } + applySpacing(); +} + +void PageGameStats::applySpacing() +{ if (!labelGameStats->isHidden()) { labelGraphTitle->setText("
" + labelGraphTitle->text()); diff -r 57f7d89067ef -r dc236bcd7309 QTfrontend/ui/page/pagegamestats.h --- a/QTfrontend/ui/page/pagegamestats.h Tue May 28 01:58:42 2019 +0200 +++ b/QTfrontend/ui/page/pagegamestats.h Tue May 28 13:07:56 2019 +0200 @@ -65,6 +65,7 @@ private: void AddStatText(const QString & msg); + void applySpacing(); QMap > healthPoints; unsigned int playerPosition;