summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-02-21 21:45:35 +0100
committerAndras Timar <andras.timar@collabora.com>2018-03-25 21:23:54 +0200
commit9af3a946d23ba4906de7be69f0e1496e84f49390 (patch)
tree1a8c26723e1793921902446d2a0a5d2998cde2af /sfx2
parent552c20346f254646dc0f7405f336590f4901f2b1 (diff)
Simplify conditions a little
Change-Id: Iaa587f1a2d78f14b999f2e9e866db058d466493f Reviewed-on: https://gerrit.libreoffice.org/50137 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 06f04bf84d48d6542d9b47d1e16228923de61302)
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/tabdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index f6dc0b2fce1a..5dc6a5bee5b4 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -778,10 +778,10 @@ short SfxTabDialog::Ok()
if ( !m_pOutSet )
{
- if ( !m_pExampleSet && m_pSet )
- m_pOutSet = m_pSet->Clone( false ); // without Items
- else if ( m_pExampleSet )
+ if ( m_pExampleSet )
m_pOutSet = new SfxItemSet( *m_pExampleSet );
+ else if ( m_pSet )
+ m_pOutSet = m_pSet->Clone( false ); // without Items
}
bool bModified = false;