diff options
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/treeopt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 760285326e47..b61ddd8c7e40 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1841,10 +1841,10 @@ void OfaTreeOptionsDialog::ResizeTreeLB( void ) SvLBoxTreeList* pTreeList = aTreeLB.GetModel(); DBG_ASSERT( pTreeList, "-OfaTreeOptionsDialog::ResizeTreeLB(): no model, no cookies!" ); - SvListEntry* pEntry = pTreeList->First(); + SvLBoxEntry* pEntry = pTreeList->First(); while( pEntry ) { - long n = aTreeLB.GetTextWidth( aTreeLB.GetEntryText( static_cast< SvLBoxEntry* >( pEntry ) ) ); + long n = aTreeLB.GetTextWidth(aTreeLB.GetEntryText(pEntry)); n += ((nDepth == 0) ? nIndent0 : nIndent1); if( n > nDelta ) |