From 5196e6424c7df62966d712428374bc55f3767ba0 Mon Sep 17 00:00:00 2001 From: csh Date: Mon, 5 Feb 2024 17:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`font.color`=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docx/font/TSDocxFont.tsf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docx/font/TSDocxFont.tsf b/docx/font/TSDocxFont.tsf index 8ee0d55..c22fe2c 100644 --- a/docx/font/TSDocxFont.tsf +++ b/docx/font/TSDocxFont.tsf @@ -225,9 +225,9 @@ Begin End; Function TSDocxFont.ReadColor();virtual; Begin - v := pr.Value("Color"); + v := pr_.Value("Color"); value := color_index_[v]; - if ifnil(value) then return color_[v]; + return ifnil(value) ? color_[v] : value; End; Function TSDocxFont.WriteColorIndex(value);virtual;