Make wxEnhMetaFileDC ctor from wxDC explicit.

This avoids implicit conversion of any kind of wxDC to wxEnhMetaFileDC which
is totally unexpected.

See #13326.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-07-21 13:49:59 +00:00
parent 1a63798c5a
commit fb4faeb5de

View File

@@ -89,6 +89,7 @@ public:
// as above, but takes reference DC as first argument to take resolution, // as above, but takes reference DC as first argument to take resolution,
// size, font metrics etc. from // size, font metrics etc. from
wxEXPLICIT
wxEnhMetaFileDC(const wxDC& referenceDC, wxEnhMetaFileDC(const wxDC& referenceDC,
const wxString& filename = wxEmptyString, const wxString& filename = wxEmptyString,
int width = 0, int height = 0, int width = 0, int height = 0,