]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug in DoDrawRotatedText: it wasn't deleting the font when done
authorGuillermo Rodriguez Garcia <guille@iies.es>
Wed, 2 Feb 2000 19:48:01 +0000 (19:48 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Wed, 2 Feb 2000 19:48:01 +0000 (19:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index f4657caf107ee57813cb587d57aa32f8837b3894..3fc309221aa7df82cc8088811bb9590eebc99647 100644 (file)
@@ -778,6 +778,7 @@ void wxDC::DoDrawRotatedText(const wxString& text,
             DrawAnyText(text, x, y);
 
             (void)::SelectObject(GetHdc(), hfontOld);
+            (void)::DeleteObject(hfont);
         }
 
         // call the bounding box by adding all four vertices of the rectangle
@@ -1379,7 +1380,6 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
             wxLogLastError("BitBlt");
         }
     }
-
     ::SetTextColor(GetHdc(), old_textground);
     ::SetBkColor(GetHdc(), old_background);