Set default font when Search descriptor works incorrect

This commit is contained in:
Georgy Litvinov 2019-12-04 21:10:44 +03:00
parent c1e8e93b01
commit 1887103742
2 changed files with 5 additions and 2 deletions

View file

@ -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>