Set default font when Search descriptor works incorrect
This commit is contained in:
parent
c1e8e93b01
commit
1887103742
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
</script:module>
|
||||
</script:module>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
xmlns:dep="http://openoffice.org/extensions/description/2006"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<identifier value="pro.litvinovg.Redaction" />
|
||||
<version value="0.3.0" />
|
||||
<version value="0.3.1" />
|
||||
<platform value="all" />
|
||||
<display-name>
|
||||
<name lang="en">Redaction for publishing in Institute of philosophy</name>
|
||||
|
|
Loading…
Add table
Reference in a new issue