https://bugs.freedesktop.org/show_bug.cgi?id=61479

Chris Sherlock <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #5 from Chris Sherlock <[email protected]> ---
Ah! I see where we need to make the change. 

Problem is in lcl_SetStyleProperty(), which is part of
sw/source/core/unocore/unostyle.cxx

The part that's wrong is:

   1800         case FN_UNO_FOLLOW_STYLE:
   1801         {
   1802             OUString sTmp;
   1803             rValue >>= sTmp;
   1804             OUString aString;
   1805             SwStyleNameMapper::FillUIName(sTmp, aString,
lcl_GetSwEnumFromSfxEnum ( eFamily ), true ) ;
   1806             rBase.mxNewBase->SetFollow( aString );
   1807         }

Not sure yet, but I think the solution will be to use getPropertyValue to take
the value of the <w:basedOn>. The we pass this to rBase.mxNewBase->SetFollow().
That should resolve the matter. 

We don't seem to support the <w:next> attribute though, which specifies the
next paragraph's style. But that's another issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to