Kaydet (Commit) 3c2c2692 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

DOCX styles: Another fix in <w:next> style handling.

Compare styleId against styleId, not style name against styleId.

Change-Id: I42bbb8a04424780772065585cc8ff56d906a48e4
üst 909c82d8
...@@ -894,7 +894,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable ) ...@@ -894,7 +894,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
std::vector< StyleSheetEntryPtr >::iterator it = m_pImpl->m_aStyleSheetEntries.begin(); std::vector< StyleSheetEntryPtr >::iterator it = m_pImpl->m_aStyleSheetEntries.begin();
for (; it != m_pImpl->m_aStyleSheetEntries.end(); ++it) for (; it != m_pImpl->m_aStyleSheetEntries.end(); ++it)
{ {
if (!(*it)->sStyleName.isEmpty() && (*it)->sStyleName == pEntry->sNextStyleIdentifier) if (!(*it)->sStyleName.isEmpty() && (*it)->sStyleIdentifierD == pEntry->sNextStyleIdentifier)
{ {
beans::PropertyValue aNew; beans::PropertyValue aNew;
aNew.Name = "FollowStyle"; aNew.Name = "FollowStyle";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment