richedit: Handle missing colours in rtf colour table.
commitdde41d5c13e5efdb9607c6ce063e0105a9de12e6
authorDylan Smith <dylan.ah.smith@gmail.com>
Fri, 17 Jul 2009 13:17:20 +0000 (17 09:17 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 17 Jul 2009 13:40:35 +0000 (17 15:40 +0200)
tree663742bdb2fab9a758ee32c047dbd834a19b5bcf
parent1e5d72a630ddc484446fe4203356e0755d608794
richedit: Handle missing colours in rtf colour table.

When a colour table entry is empty, then the default colour is used.
For an incomplete colour table entry 0 is used for the missing colours.

Previously the -1 value used internally for missing colours was being
converted into white, where it should be using the default colour that
is normally black.

This bug could be seen by loading the following rich text into wordpad:
{\rtf{\colortbl;;}\cf1 text}
dlls/riched20/editor.c
dlls/riched20/reader.c