diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-28 21:21:35 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-29 06:29:34 -0700 |
commit | 7d7f4769b0375f64f43fe7fbc6a1129f53bbdf51 (patch) | |
tree | f46c94a5c4bbb2182f7417b87da48bcd741b4ba5 /cui | |
parent | 55240e889b859110ea3f1cbf1b9671f1a52e3014 (diff) |
Rebase XColorTable from XPropertyTable to XPropertyList
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optchart.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx index 68a4fad5bc2b..a9809be47f63 100644 --- a/cui/source/options/optchart.cxx +++ b/cui/source/options/optchart.cxx @@ -170,7 +170,7 @@ long SvxDefaultColorOptPage::GetColorIndex( const Color& rCol ) { pColorEntry = pColorTab->GetColor( i ); if( pColorEntry && pColorEntry->GetColor() == rCol ) - return SAL_STATIC_CAST( XPropertyTable*, pColorTab )->Get( pColorEntry->GetName() ); + return SAL_STATIC_CAST( XPropertyList*, pColorTab )->Get( pColorEntry->GetName() ); } } return -1L; diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 5215fad90f7a..01dc8e08ce18 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -515,7 +515,7 @@ IMPL_LINK( SvxColorTabPage, ClickAddHdl_Impl, void *, EMPTYARG ) ConvertColorValues (aAktuellColor, CM_RGB); pEntry = new XColorEntry( aAktuellColor, aName ); - pColorTab->Insert( pColorTab->Count(), pEntry ); + pColorTab->Insert( pEntry, pColorTab->Count() ); aLbColor.Append( pEntry ); aValSetColorTable.InsertItem( aValSetColorTable.GetItemCount() + 1, @@ -689,7 +689,7 @@ IMPL_LINK( SvxColorTabPage, ClickDeleteHdl_Impl, void *, EMPTYARG ) { pEntry = pColorTab->Remove( i + 1 ); DBG_ASSERT( pEntry, "ColorEntry nicht vorhanden (2) !" ); - pColorTab->Insert( i, pEntry ); + pColorTab->Insert( pEntry, i ); } // Listbox und ValueSet aktualisieren |