]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix (I hope) for bug [ 673862 ] printing zero length string with postscript does...
authorJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 19:23:16 +0000 (19:23 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 1 Jun 2003 19:23:16 +0000 (19:23 +0000)
Now descent and externalLeading will be zeroed if the string is empty.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dcpsg.cpp

index 4fa2f1d944f0434cb50f656bd8e3bc5d3f3c0f0f..94c2a4993ff2b4ad2dbf9c2363decb06fcd3419b 100644 (file)
@@ -1990,6 +1990,8 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
     {
         if (x) (*x) = 0;
         if (y) (*y) = 0;
+        if (descent) (*descent) = 0;
+        if (externalLeading) (*externalLeading) = 0;
         return;
     }