mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
More warnings/minor fixes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@836 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -29,7 +29,7 @@ wxSize CardViewer::DoGetBestSize() const {
|
||||
if (set) {
|
||||
if (!stylesheet) stylesheet = set->stylesheet;
|
||||
StyleSheetSettings& ss = settings.stylesheetSettingsFor(*stylesheet);
|
||||
wxSize size(stylesheet->card_width * ss.card_zoom(), stylesheet->card_height * ss.card_zoom());
|
||||
wxSize size(int(stylesheet->card_width * ss.card_zoom()), int(stylesheet->card_height * ss.card_zoom()));
|
||||
if (sideways(ss.card_angle())) swap(size.x, size.y);
|
||||
return size + ws - cs;
|
||||
}
|
||||
|
||||
@@ -116,9 +116,9 @@ size_t TreeList::findParent(size_t start) const {
|
||||
|
||||
TreeList::TreeList(Window* parent, int id, long style)
|
||||
: wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, style | wxWANTS_CHARS | wxVSCROLL)
|
||||
, selection(NOTHING)
|
||||
, total_lines(0)
|
||||
, first_line(0)
|
||||
, selection(NOTHING)
|
||||
{
|
||||
// determine item size
|
||||
wxClientDC dc(this);
|
||||
|
||||
Reference in New Issue
Block a user