Kaydet (Commit) 87290520 authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Andras Timar

sw: fix not-quite-copypaste code in SwDocStyleSheet::FillStyleSheet()

This causes the temporary creation of frame styles to fail.

Change-Id: I5d148ae008660d9c0f457a4c0e9dc256e0dfc49a
(cherry picked from commit 110dc43d)
Reviewed-on: https://gerrit.libreoffice.org/18380Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst e53e2621
...@@ -1779,7 +1779,7 @@ bool SwDocStyleSheet::FillStyleSheet( FillStyleType eFType ) ...@@ -1779,7 +1779,7 @@ bool SwDocStyleSheet::FillStyleSheet( FillStyleType eFType )
case SFX_STYLE_FAMILY_FRAME: case SFX_STYLE_FAMILY_FRAME:
pFrameFormat = lcl_FindFrameFormat(rDoc, aName, this, bCreate); pFrameFormat = lcl_FindFrameFormat(rDoc, aName, this, bCreate);
bPhysical = 0 != pFrameFormat; bPhysical = 0 != pFrameFormat;
if( bFillOnlyInfo && bPhysical ) if (bFillOnlyInfo && !bPhysical)
{ {
::sw::UndoGuard const ug(rDoc.GetIDocumentUndoRedo()); ::sw::UndoGuard const ug(rDoc.GetIDocumentUndoRedo());
bDeleteInfo = true; bDeleteInfo = true;
......
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