Fix: apply charStyle for notes character

This commit is contained in:
Georgy Litvinov 2020-03-09 09:49:13 +01:00
parent 89fce0e0c2
commit 3a20da2b47

View file

@ -31,7 +31,6 @@ import java.util.Enumeration;
//import writer2latex.latex.util.Info;
import writer2latex.office.OfficeReader;
import writer2latex.office.StyleWithProperties;
import writer2latex.util.CSVList;
import writer2latex.xhtml.Converter;
import writer2latex.xhtml.StyleInfo;
import writer2latex.xhtml.XhtmlConfig;
@ -65,6 +64,7 @@ public abstract class StyleWithPropertiesParser extends StyleParser {
public void readStyle(String sStyleName, StyleInfo info) {
StyleWithProperties style = (StyleWithProperties) getStyles().getStyle(sStyleName);
if (style == null) {
return;
}
info.sTagName = getStyleTag();
@ -94,6 +94,10 @@ public abstract class StyleWithPropertiesParser extends StyleParser {
// Generate class name from display name
styleNames.addName(displayName);
info.sClass = getClassNamePrefix() + styleNames.getName(displayName);
if (bConvertHard) {
applyProperties(style, info.props, false);
}
}
}
}