Author: cazfi
Date: Wed Nov 19 05:23:15 2014
New Revision: 27082

URL: http://svn.gna.org/viewcvs/freeciv?rev=27082&view=rev
Log:
Fixed Qt-client crash in info_label::paint() when indicator icons not created

Patch by Christian Prochaska <cproc> and myself

See bug #22932

Modified:
    trunk/client/gui-qt/mapview.cpp

Modified: trunk/client/gui-qt/mapview.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=27082&r1=27081&r2=27082&view=diff
==============================================================================
--- trunk/client/gui-qt/mapview.cpp     (original)
+++ trunk/client/gui-qt/mapview.cpp     Wed Nov 19 05:23:15 2014
@@ -1103,6 +1103,11 @@
   int h = 0;
   int w;
   QFontMetrics *fm;
+
+  if (indicator_icons == nullptr) {
+    return;
+  }
+
   ufont->setPixelSize(14);
 
   fm = new QFontMetrics(*ufont);


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to