summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-09-07 16:21:53 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-08 07:57:42 +0000
commit4b9c51bd265908e8bf65cb2a462dd8fd9a88904f (patch)
treede588f169b0784898eab0471cbdfb11d03fd2193
parent1805b7549cd240009bf67eba3a030e19b4f6f046 (diff)
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 110dc43d97d559b6369bca308f9dd39fd02e751e) Reviewed-on: https://gerrit.libreoffice.org/18380 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/source/uibase/app/docstyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 016b1a101371..8c0c438ecfbf 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -1779,7 +1779,7 @@ bool SwDocStyleSheet::FillStyleSheet( FillStyleType eFType )
case SFX_STYLE_FAMILY_FRAME:
pFrameFormat = lcl_FindFrameFormat(rDoc, aName, this, bCreate);
bPhysical = 0 != pFrameFormat;
- if( bFillOnlyInfo && bPhysical )
+ if (bFillOnlyInfo && !bPhysical)
{
::sw::UndoGuard const ug(rDoc.GetIDocumentUndoRedo());
bDeleteInfo = true;