[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - cui/source
Gabor Kelemen (via logerrit)
logerrit at kemper.freedesktop.org
Wed Nov 20 22:46:47 UTC 2019
cui/source/tabpages/tpgradnt.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d7cf742cde9b174cf83c416fc1618da80a3a13f0
Author: Gabor Kelemen <kelemen.gabor2 at nisz.hu>
AuthorDate: Sun Nov 10 19:03:14 2019 +0100
Commit: Xisco FaulĂ <xiscofauli at libreoffice.org>
CommitDate: Wed Nov 20 23:45:41 2019 +0100
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 at cib.de>
(cherry picked from commit 53c474633c4e658f096669fb0225d751a5701aaf)
Reviewed-on: https://gerrit.libreoffice.org/83186
Reviewed-by: Xisco FaulĂ <xiscofauli at libreoffice.org>
(cherry picked from commit 5979fc4a3fa5713b8df49ba624445ce9ed4ccace)
Reviewed-on: https://gerrit.libreoffice.org/83287
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index bf437d9753f8..9dfca8965f70 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -202,11 +202,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()),
@@ -217,6 +217,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;
@@ -225,7 +226,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;
}
More information about the Libreoffice-commits
mailing list