]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/clipbrd.cpp
Simplify and rationalize wxGDIPlusContext class constructors.
[wxWidgets.git] / src / msw / clipbrd.cpp
index b9df0c276755db21ee7645270ac8971eeda795d3..da105ae2542d2a8f6eed9766732ab06f1c69d1b1 100644 (file)
@@ -90,13 +90,15 @@ bool wxOpenClipboard()
         gs_wxClipboardIsOpen = ::OpenClipboard((HWND)win->GetHWND()) != 0;
 
         if ( !gs_wxClipboardIsOpen )
+        {
             wxLogSysError(_("Failed to open the clipboard."));
+        }
 
         return gs_wxClipboardIsOpen;
     }
     else
     {
-        wxLogDebug(wxT("Can not open clipboard without a main window."));
+        wxLogDebug(wxT("Cannot open clipboard without a main window."));
 
         return false;
     }
@@ -212,7 +214,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
             {
                 wxBitmap *bitmap = (wxBitmap *)data;
 
-                if ( bitmap && bitmap->Ok() )
+                if ( bitmap && bitmap->IsOk() )
                 {
                     wxDIB dib(*bitmap);
                     if ( dib.IsOk() )