diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-11-10 19:03:14 +0100 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-11-19 17:46:46 +0100 |
commit | 5979fc4a3fa5713b8df49ba624445ce9ed4ccace (patch) | |
tree | b2f024ce103b916a8309d515b2701f40ef0cb105 /cui | |
parent | 3c341fd0eb43f4412499459207b51ae9a8b532a6 (diff) |
tdf#125449 Fix custom gradient fill settings being lost
Change-Id: Ia2377274e0fc9da5873bf55735af25ed6ae3d65c
Reviewed-on: https://gerrit.libreoffice.org/82393
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
(cherry picked from commit 53c474633c4e658f096669fb0225d751a5701aaf)
Reviewed-on: https://gerrit.libreoffice.org/83186
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tpgradnt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx index f8affa0f044e..170d63fb96be 100644 --- a/cui/source/tabpages/tpgradnt.cxx +++ b/cui/source/tabpages/tpgradnt.cxx @@ -186,11 +186,11 @@ bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet ) { pXGradient.reset(new XGradient( m_pGradientList->GetGradient( static_cast<sal_uInt16>(nPos) )->GetGradient() )); aString = m_xGradientLB->GetItemText( m_xGradientLB->GetSelectedItemId() ); + rSet->Put( XFillGradientItem( aString, *pXGradient ) ); } else // gradient was passed (unidentified) { - aString = "gradient"; pXGradient.reset(new XGradient( m_xLbColorFrom->GetSelectEntryColor(), m_xLbColorTo->GetSelectEntryColor(), static_cast<css::awt::GradientStyle>(m_xLbGradientType->get_active()), @@ -201,6 +201,7 @@ bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet ) static_cast<sal_uInt16>(m_xMtrColorFrom->get_value(FieldUnit::NONE)), static_cast<sal_uInt16>(m_xMtrColorTo->get_value(FieldUnit::NONE)), static_cast<sal_uInt16>(m_xMtrIncrement->get_value()) )); + rSet->Put( XFillGradientItem( OUString(), *pXGradient ) ); } sal_uInt16 nValue = 0; @@ -209,7 +210,6 @@ bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet ) assert( pXGradient && "XGradient could not be created" ); rSet->Put( XFillStyleItem( drawing::FillStyle_GRADIENT ) ); - rSet->Put( XFillGradientItem( aString, *pXGradient ) ); rSet->Put( XGradientStepCountItem( nValue ) ); return true; } |