[pywin32-checkins] pywin32/Pythonwin win32util.cpp,1.12,1.13
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-01-26 17:38:29
|
Update of /cvsroot/pywin32/pywin32/Pythonwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25281 Modified Files: win32util.cpp Log Message: Fix issue with Italic and Underline (bug #1879894) Index: win32util.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32util.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** win32util.cpp 20 Oct 2007 05:23:14 -0000 1.12 --- win32util.cpp 26 Jan 2008 17:38:32 -0000 1.13 *************** *** 317,325 **** v = PyDict_GetItemString (font_props, (char *)szFontItalic); ! if (v != NULL && v != Py_None) pLF->lfItalic = TRUE; v = PyDict_GetItemString (font_props, (char *)szFontUnderline); ! if (v != NULL && v != Py_None) pLF->lfUnderline = TRUE; return TRUE; --- 317,325 ---- v = PyDict_GetItemString (font_props, (char *)szFontItalic); ! if (v != NULL && PyObject_IsTrue(v)) pLF->lfItalic = TRUE; v = PyDict_GetItemString (font_props, (char *)szFontUnderline); ! if (v != NULL && PyObject_IsTrue(v)) pLF->lfUnderline = TRUE; return TRUE; |