]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
Avoid crash when releasing the mouse in wxRibbonToolBar.
[wxWidgets.git] / src / common / graphcmn.cpp
index b014460e0bceb77bedfb49fc53f70964a544301a..0c24351e7e2b049f43a8a2b4e4cf476739fd64f1 100644 (file)
@@ -520,7 +520,7 @@ void wxGraphicsGradientStops::Add(const wxGraphicsGradientStop& stop)
     }
     else
     {
-        wxFAIL_MSG( "invalid gradient stop position >= 1" );
+        wxFAIL_MSG( "invalid gradient stop position > 1" );
     }
 }
 
@@ -870,8 +870,16 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
 }
+
+#ifdef __WXMSW__
+/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxEnhMetaFileDC& dc)
+{
+    return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
+}
 #endif
 
+#endif // wxUSE_PRINTING_ARCHITECTURE
+
 wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContextFromNativeContext(context);