Commit 2e9d52df authored by twanvl's avatar twanvl

correct parent for file open dialog in ImageValueEditor

parent b7457a59
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment