diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-06-01 20:53:32 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-06-02 15:45:15 +0000 |
commit | 9f5bb8cddd28be2c45ac5bdf438d4996337f6380 (patch) | |
tree | 61a093daf555c63936117a8b3602dc1f71a419c9 /cui | |
parent | a92eddbddee76fdcd9f98464fee26865692940e9 (diff) |
Import custom Hatch background color
Change-Id: I36593afb557f9826f2b0117cd93d2712bc676cdd
Reviewed-on: https://gerrit.libreoffice.org/25784
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/tphatch.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx index 78e5fa84da03..3b0afef74794 100644 --- a/cui/source/tabpages/tphatch.cxx +++ b/cui/source/tabpages/tphatch.cxx @@ -240,6 +240,12 @@ void SvxHatchTabPage::ActivatePage( const SfxItemSet& rSet ) if(aBckItem.GetValue()) aColor = aColorItem.GetColorValue(); m_pLbBackgroundColor->SelectEntry(aColor); + if( m_pLbBackgroundColor->GetSelectEntryCount() == 0 ) + { + m_pLbBackgroundColor->InsertEntry( aColor , OUString() ); + m_pLbBackgroundColor->SelectEntry( aColor ); + } + m_rXFSet.Put( aBckItem ); m_rXFSet.Put( aColorItem ); |