• Dylan Smith's avatar
    richedit: Handle missing colours in rtf colour table. · dde41d5c
    Dylan Smith authored
    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}
    dde41d5c
Name
Last commit
Last update
..
tests Loading commit data...
Makefile.in Loading commit data...
caret.c Loading commit data...
clipboard.c Loading commit data...
context.c Loading commit data...
editor.c Loading commit data...
editor.h Loading commit data...
editstr.h Loading commit data...
list.c Loading commit data...
ocr_reverse.cur Loading commit data...
paint.c Loading commit data...
para.c Loading commit data...
reader.c Loading commit data...
res.h Loading commit data...
riched20.spec Loading commit data...
richole.c Loading commit data...
row.c Loading commit data...
rtf.h Loading commit data...
run.c Loading commit data...
string.c Loading commit data...
style.c Loading commit data...
table.c Loading commit data...
txthost.c Loading commit data...
txtsrv.c Loading commit data...
undo.c Loading commit data...
version.rc Loading commit data...
wrap.c Loading commit data...
writer.c Loading commit data...