URL:
  <http://gna.org/patch/?5752>

                 Summary: Use mapview center tile if unit selection dialog
opened without focus unit
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Sun 25 Jan 2015 10:09:31 AM EET
                Category: client-gtk-3.0
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.5.0, 2.6.0, 3.0.0

    _______________________________________________________

Details:

Split from bug #20681

If unit selection dialog is being opened without focus units, it crashes due
to not having the reference tile usually set to be the one focus unit (or head
unit of multiple selected) stands on.

Avoid that crash by setting reference tile to be current mapview center tile
in that case.

Currently it's not possible to open the dialog without focus unit, so this is
not fixing an crash that would be already happening in curent code base.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 25 Jan 2015 10:09:31 AM EET  Name: CenterTileUnitlessDialog.patch 
Size: 1kB   By: cazfi

<http://gna.org/patch/download.php?file_id=23615>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?5752>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to