Browse Source

ComPDFKit.Tool(win)-创建文字颜色判断条件优化

liyijie 7 months ago
parent
commit
23f0bb94fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.TextEdit.cs

+ 1 - 1
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.TextEdit.cs

@@ -1643,7 +1643,7 @@ namespace ComPDFKit.Tool
                     textEditParam.FontSize = 14;
                 }
 
-                if (textEditParam.FontColor == null || textEditParam.FontColor.Length <= 3)
+                if (textEditParam.FontColor == null || textEditParam.FontColor.Length < 3)
                 {
                     textEditParam.FontColor = new byte[3] { 0, 0, 0 };
                 }