[Libreoffice-commits] core.git: cui/source
Rishabh Kumar
kris.kr296 at gmail.com
Thu Jun 2 15:45:46 UTC 2016
cui/source/tabpages/tphatch.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 9f5bb8cddd28be2c45ac5bdf438d4996337f6380
Author: Rishabh Kumar <kris.kr296 at gmail.com>
Date: Wed Jun 1 20:53:32 2016 +0530
Import custom Hatch background color
Change-Id: I36593afb557f9826f2b0117cd93d2712bc676cdd
Reviewed-on: https://gerrit.libreoffice.org/25784
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index 78e5fa8..3b0afef 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 );
More information about the Libreoffice-commits
mailing list