]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
Added stub for the new pure virtual DoInsert method
[wxWidgets.git] / src / generic / dragimgg.cpp
index d625524ed37e72bf31b04cad9b2fd4c88c8958ee..8e89afe82318693ad26a052c3238ceaa5629a62e 100644 (file)
@@ -139,12 +139,12 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor)
     dc.SetFont(wxNullFont);
 
     wxMemoryDC dc2;
-    dc2.SetFont(font);
 
     // Sometimes GetTextExtent isn't accurate enough, so make it longer
     wxBitmap bitmap((int) ((w+2) * 1.5), (int) h+2);
     dc2.SelectObject(bitmap);
 
+    dc2.SetFont(font);
     dc2.SetBackground(* wxWHITE_BRUSH);
     dc2.Clear();
     dc2.SetBackgroundMode(wxTRANSPARENT);