[Commits] [wesnoth/wesnoth] 7f265e: select special location in editor palette after cr...
GitHub
noreply at github.com
Fri Jun 17 23:50:07 UTC 2016
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 7f265e5e5351e781c43c56f25be2d15ceab517c8
https://github.com/wesnoth/wesnoth/commit/7f265e5e5351e781c43c56f25be2d15ceab517c8
Author: gfgtdf <daniel.gfgtdf at gmail.com>
Date: 2016-06-18 (Sat, 18 Jun 2016)
Changed paths:
M src/editor/palette/common_palette.hpp
M src/editor/palette/editor_palettes.cpp
M src/editor/palette/editor_palettes.hpp
M src/editor/palette/empty_palette.hpp
M src/editor/palette/location_palette.cpp
M src/editor/palette/location_palette.hpp
M src/editor/palette/palette_manager.cpp
M src/editor/palette/palette_manager.hpp
Log Message:
-----------
select special location in editor palette after creating it
This removes the scroll_top() call in palette_manager::adjust_size()
becasue that made it impossible to scroll to the newly created item
after the "New Location Identifer" dialog was shown.
This changes most function in location_palette to use int instead of
size_t becasue "pos - num_visible_items() + 1" might result in a
negative number.
This also fixes a crash that happend when the "Go To" button was used on
an item that was no starting position.
More information about the Commits
mailing list