X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8552e6f031ded8ae61b4a5b489fbf06962365da7..83448d71476c44b449f09395cda06fa72b19a50e:/contrib/samples/ogl/studio/csprint.cpp diff --git a/contrib/samples/ogl/studio/csprint.cpp b/contrib/samples/ogl/studio/csprint.cpp index 4d17b59ab7..680fef2ff8 100644 --- a/contrib/samples/ogl/studio/csprint.cpp +++ b/contrib/samples/ogl/studio/csprint.cpp @@ -169,6 +169,7 @@ bool wxDiagramClipboard::DoCopy(wxDiagram* diagramFrom, wxDiagram* diagramTo, bo // these to the Windows clipboard bool wxDiagramClipboard::CopyToClipboard(double scale) { +#if wxUSE_METAFILE // Make a metafile DC wxMetaFileDC mfDC; if (mfDC.Ok()) @@ -230,7 +231,11 @@ bool wxDiagramClipboard::CopyToClipboard(double scale) delete mf; } - return TRUE; + return true; +#else + wxMessageBox("wxUSE_METAFILE in build required to use Clipboard", _T("Clipboard copy problem")); + return false; +#endif } #endif // __WXMSW__