Author: cazfi
Date: Wed Mar  4 19:55:32 2015
New Revision: 28406

URL: http://svn.gna.org/viewcvs/freeciv?rev=28406&view=rev
Log:
Fixed a gtk2-client crash when tileset is changed while science dialog is open.

See bug #22625

Modified:
    branches/S2_5/client/gui-gtk-2.0/mapview.c

Modified: branches/S2_5/client/gui-gtk-2.0/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-gtk-2.0/mapview.c?rev=28406&r1=28405&r2=28406&view=diff
==============================================================================
--- branches/S2_5/client/gui-gtk-2.0/mapview.c  (original)
+++ branches/S2_5/client/gui-gtk-2.0/mapview.c  Wed Mar  4 19:55:32 2015
@@ -874,7 +874,6 @@
 **************************************************************************/
 void tileset_changed(void)
 {
-  science_report_dialog_redraw();
   reset_city_dialogs();
   reset_unit_table();
   blank_max_unit_size();
@@ -885,4 +884,6 @@
   gtk_window_set_icon(GTK_WINDOW(toplevel),
                sprite_get_pixbuf(get_icon_sprite(tileset, ICON_FREECIV)));
 #endif
-}
+
+  science_report_dialog_redraw();
+}


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

Reply via email to