-bool wxImageDocument::SaveFile(wxOutputStream* stream, wxBitmapType type) const
-{
- return m_image.IsOk() && m_image.SaveFile(*stream, type);
-}
+ // we don't have a wxDocTemplate for the image details document as it's
+ // never created by wxWidgets automatically, instead just do it manually
+ ImageDetailsDocument * const docDetails = new ImageDetailsDocument(this);
+ docDetails->SetFilename(filename);