dwrite: Font collection pointer is never null when creating text format.

This commit is contained in:
Nikolay Sivov 2014-12-16 17:48:15 +03:00 committed by Alexandre Julliard
parent bbe6655280
commit f4e3005645
1 changed files with 2 additions and 8 deletions

View File

@ -1972,14 +1972,8 @@ HRESULT create_textformat(const WCHAR *family_name, IDWriteFontCollection *colle
This->format.trimming.delimiter = 0;
This->format.trimming.delimiterCount = 0;
This->format.trimmingsign = NULL;
if (collection)
{
This->format.collection = collection;
IDWriteFontCollection_AddRef(collection);
}
else
ERR("Collection should always be set\n");
*format = (IDWriteTextFormat*)&This->IDWriteTextFormat1_iface;