… | |
… | |
77 | } |
77 | } |
78 | |
78 | |
79 | sub open_map_editor { |
79 | sub open_map_editor { |
80 | my ($self, $mapfile) = @_; |
80 | my ($self, $mapfile) = @_; |
81 | |
81 | |
|
|
82 | unless (ref $mapfile) { |
82 | unless (File::Spec->file_name_is_absolute ($mapfile)) { |
83 | unless (File::Spec->file_name_is_absolute ($mapfile)) { |
83 | $mapfile = File::Spec->rel2abs ($mapfile); |
84 | $mapfile = File::Spec->rel2abs ($mapfile); |
|
|
85 | } |
84 | } |
86 | } |
85 | |
87 | |
86 | # XXX: last_map_window is a dirty trick to get the position and size |
88 | # XXX: last_map_window is a dirty trick to get the position and size |
87 | # for save layout |
89 | # for save layout |
88 | |
90 | |