From 1887103742c41e3c490952c6f3f96babae42dbc5 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 4 Dec 2019 21:10:44 +0300 Subject: [PATCH] Set default font when Search descriptor works incorrect --- IPHRedaction/Clean.xba | 5 ++++- description.xml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/IPHRedaction/Clean.xba b/IPHRedaction/Clean.xba index 5e6088f..7150cb0 100644 --- a/IPHRedaction/Clean.xba +++ b/IPHRedaction/Clean.xba @@ -110,6 +110,9 @@ Private Sub convertFontsToCharStyles founds = Thiscomponent.findFirst(SDesc) do while not isNull(founds) curFont = founds.CharFontName + If IsEmpty(curFont) Then + curFont = "IPH Astra Serif" + EndIf If curFont <> "IPH Astra Serif" AND curFont <> "" Then If Not DocHasCharStyle(oDoc,curFont) Then oProps() = Array(CreateProperty("CharFontName", curFont)) @@ -929,4 +932,4 @@ Private Function getStyleNames(oFamily,bLocalized as Boolean, _ Endif xArray(iUB) = vNextElement End Sub - \ No newline at end of file + diff --git a/description.xml b/description.xml index cf1ea30..317e473 100644 --- a/description.xml +++ b/description.xml @@ -3,7 +3,7 @@ xmlns:dep="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink"> - + Redaction for publishing in Institute of philosophy