mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
correct parent for file open dialog in ImageValueEditor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1035 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -20,7 +20,7 @@ IMPLEMENT_VALUE_EDITOR(Image) {}
|
||||
bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) {
|
||||
String filename = wxFileSelector(_("Open image file"), _(""), _(""), _(""),
|
||||
_("All images|*.bmp;*.jpg;*.png;*.gif|Windows bitmaps (*.bmp)|*.bmp|JPEG images (*.jpg;*.jpeg)|*.jpg;*.jpeg|PNG images (*.png)|*.png|GIF images (*.gif)|*.gif|TIFF images (*.tif;*.tiff)|*.tif;*.tiff"),
|
||||
wxOPEN);
|
||||
wxOPEN, wxGetTopLevelParent(&editor()));
|
||||
if (!filename.empty()) {
|
||||
sliceImage(wxImage(filename));
|
||||
}
|
||||
|
||||
@@ -3816,6 +3816,10 @@
|
||||
</File>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="cli"
|
||||
Filter="">
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\code_template.cpp">
|
||||
<FileConfiguration
|
||||
|
||||
Reference in New Issue
Block a user