diff --git a/src/main/java/writer2latex/xhtml/style/StyleWithPropertiesParser.java b/src/main/java/writer2latex/xhtml/style/StyleWithPropertiesParser.java
index 1b8d3f8..024a442 100644
--- a/src/main/java/writer2latex/xhtml/style/StyleWithPropertiesParser.java
+++ b/src/main/java/writer2latex/xhtml/style/StyleWithPropertiesParser.java
@@ -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);
+ }
+
}
}
}