diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-29 06:57:05 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-29 07:18:46 -0700 |
commit | 10938788cee4387b2c8ada8b127142c8eef754b3 (patch) | |
tree | fdf83f4a65e202eff44d1794a8eef67e2058200d /svx | |
parent | c142263e267028f14903ae4eecbe533e80a5afdf (diff) |
Fix my bug: XColorTable is based on XPropertyList not XPropertyTable
I should have changed this in the "rebase patch".
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoctabl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx index 6f039f11b631..094432ac68ec 100644 --- a/svx/source/unodraw/unoctabl.cxx +++ b/svx/source/unodraw/unoctabl.cxx @@ -147,7 +147,7 @@ void SAL_CALL SvxUnoColorTable::insertByName( const OUString& aName, const uno:: void SAL_CALL SvxUnoColorTable::removeByName( const OUString& Name ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException) { - long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( Name ) : -1; + long nIndex = pTable ? ((XPropertyList*)pTable)->Get( Name ) : -1; if( nIndex == -1 ) throw container::NoSuchElementException(); @@ -162,7 +162,7 @@ void SAL_CALL SvxUnoColorTable::replaceByName( const OUString& aName, const uno: if( !(aElement >>= nColor) ) throw lang::IllegalArgumentException(); - long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1; + long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1; if( nIndex == -1 ) throw container::NoSuchElementException(); @@ -174,7 +174,7 @@ void SAL_CALL SvxUnoColorTable::replaceByName( const OUString& aName, const uno: uno::Any SAL_CALL SvxUnoColorTable::getByName( const OUString& aName ) throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException) { - long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1; + long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1; if( nIndex == -1 ) throw container::NoSuchElementException(); @@ -202,7 +202,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoColorTable::getElementNames( ) sal_Bool SAL_CALL SvxUnoColorTable::hasByName( const OUString& aName ) throw( uno::RuntimeException ) { - long nIndex = pTable ? ((XPropertyTable*)pTable)->Get( aName ) : -1; + long nIndex = pTable ? ((XPropertyList*)pTable)->Get( aName ) : -1; return nIndex != -1; } |