Kaydet (Commit) d531ef62 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS fwk13 (1.21.156); FILE MERGED

2005/05/02 12:50:41 cd 1.21.156.1: #i47970# Check item pointer before using it
üst e72e1d3c
......@@ -2,9 +2,9 @@
*
* $RCSfile: lboxctrl.cxx,v $
*
* $Revision: 1.21 $
* $Revision: 1.22 $
*
* last change: $Author: vg $ $Date: 2005-02-24 16:55:56 $
* last change: $Author: obo $ $Date: 2005-05-06 09:40:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -362,6 +362,8 @@ void SvxUndoRedoControl::StateChanged(
{
aUndoRedoList.clear();
if ( pState && pState->ISA( SfxStringListItem ) )
{
SfxStringListItem &rItem = *(SfxStringListItem *)pState;
const List* pLst = rItem.GetList();
DBG_ASSERT( pLst, "no undo actions available" );
......@@ -371,6 +373,7 @@ void SvxUndoRedoControl::StateChanged(
aUndoRedoList.push_back( rtl::OUString( *(String *)pLst->GetObject( nI )));
}
}
}
}
SfxPopupWindow* SvxUndoRedoControl::CreatePopupWindow()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment