diff --git a/OOXML/Binary/Document/BinReader/BinaryReaderD.cpp b/OOXML/Binary/Document/BinReader/BinaryReaderD.cpp
index 295239bb7d..abf0ab16f6 100644
--- a/OOXML/Binary/Document/BinReader/BinaryReaderD.cpp
+++ b/OOXML/Binary/Document/BinReader/BinaryReaderD.cpp
@@ -2246,7 +2246,7 @@ int Binary_tblPrReader::Read_tblPr(BYTE type, long length, void* poResult)
{
std::wstring Name(m_oBufferedStream.GetString3(length));
Name = XmlUtils::EncodeXmlString(Name);
- pWiterTblPr->Props += L"";
+ pWiterTblPr->Style = L"";
}
else if ( c_oSerProp_tblPrType::Look == type )
{
diff --git a/OOXML/Binary/Document/BinReader/ReaderClasses.cpp b/OOXML/Binary/Document/BinReader/ReaderClasses.cpp
index 359de29e8f..f89ea3865a 100644
--- a/OOXML/Binary/Document/BinReader/ReaderClasses.cpp
+++ b/OOXML/Binary/Document/BinReader/ReaderClasses.cpp
@@ -1253,13 +1253,14 @@ allowOverlap=\"1\">";
bool CWiterTblPr::IsEmpty()
{
- return Props.empty() && tblPrChange.empty() && Caption.empty() && Description.empty();
+ return Style.empty() && Props.empty() && tblPrChange.empty() && Caption.empty() && Description.empty();
}
std::wstring CWiterTblPr::Write()
{
std::wstring sRes;
sRes += L"";
+ sRes += Style; // first
sRes += Props;
if (!Caption.empty())
diff --git a/OOXML/Binary/Document/BinReader/ReaderClasses.h b/OOXML/Binary/Document/BinReader/ReaderClasses.h
index 973ef4831b..719c780cab 100644
--- a/OOXML/Binary/Document/BinReader/ReaderClasses.h
+++ b/OOXML/Binary/Document/BinReader/ReaderClasses.h
@@ -447,6 +447,7 @@ public:
std::wstring Caption;
std::wstring Description;
+ std::wstring Style;
std::wstring Props;
bool IsEmpty();
std::wstring Write();
diff --git a/OOXML/DocxFormat/Logic/TableProperty.cpp b/OOXML/DocxFormat/Logic/TableProperty.cpp
index 5ee91e757f..ebdcaea3f3 100644
--- a/OOXML/DocxFormat/Logic/TableProperty.cpp
+++ b/OOXML/DocxFormat/Logic/TableProperty.cpp
@@ -1140,27 +1140,27 @@ namespace OOX
{
std::wstring sResult = L"";
- WritingElement_WriteNode_1( L"";