wxNullFont shouldn't be passed to wxDC::SetFont()
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jan 2002 00:14:43 +0000 (00:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Jan 2002 00:14:43 +0000 (00:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/dc.tex

index 5bb946f363f2b0ea638dbcb09bb1d511e0a5aa6c..09c3f4e560ab7b63b0978e1646510c913b2ef45c 100644 (file)
@@ -807,11 +807,8 @@ when drawing into a monochrome bitmap.
 
 \func{void}{SetFont}{\param{const wxFont\& }{font}}
 
-Sets the current font for the DC.
-
-If the argument is wxNullFont, the current font is selected out of the device
-context, and the original font restored, allowing the current font to
-be destroyed safely.
+Sets the current font for the DC. It must be a valid font, in particular you
+should not pass {\tt wxNullFont} to this method.
 
 See also \helpref{wxFont}{wxfont}.