If you set the text color to either blue or navy blue using the toolbar, the color reverts back to black when saved and reloaded (SaveToFile, LoadFromFile). Other colors seems to work fine (I didn't check them all however).
WPTools 5.19.1
D7
Eric
If you set the text color to either blue or navy blue using the toolbar, the color reverts back to black when saved and reloaded (SaveToFile, LoadFromFile). Other colors seems to work fine (I didn't check them all however).
WPTools 5.19.1
D7
Eric
Hi,
Please check the unit WPIOReadRTF
It should use this code:
ipropColorBlue:
if FStack.Destination = rdsColorTable then
begin
if (FColIndex >= 0) and (FColIndex <= MaxColors) then
begin
if (FColIndex > 0) and
(last_red = 0) and (last_green = 0) and (Value = 0) then
ColorMapTable[FColIndex] := 15 //(works due to TWPRTFProps.Init) - false: FRTFProps.AddColor(clBlack)
else
ColorMapTable[FColIndex] :=
FRTFProps.AddColor(last_red, last_green, Value);
end;
end;
Alles anzeigen
Please check if (last_red = 0) and (last_green = 0) is there
Julian
Yes, last_red and last_green was there, but Value=0 was not.
This is what was there:
(last_red=0) and (last_green=0) and (last_red=0) then
Note that last_red was in there twice.
As in your reply, changed it to:
(last_red=0) and (last_green=0) and (Value=0) then
and that fixed it... thanks!
Eric