summaryrefslogtreecommitdiff
path: root/sfx2/source/statbar/stbitem.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-09-06 07:47:59 +0000
committerMathias Bauer <mba@openoffice.org>2001-09-06 07:47:59 +0000
commit1e724410948e2d74f4e966fb3d1fe8f50a71c834 (patch)
treec5685f584f5948610c23ad429d2d01b7f8c97274 /sfx2/source/statbar/stbitem.cxx
parent8529af3b42a4195515bc713d7c4eba84a75afacc (diff)
#87722#: support 5.0 configurations
Diffstat (limited to 'sfx2/source/statbar/stbitem.cxx')
-rw-r--r--sfx2/source/statbar/stbitem.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index cdbfb2a1c780..652a741b555d 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: stbitem.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:52:35 $
+ * last change: $Author: mba $ $Date: 2001-09-06 08:47:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -145,12 +145,12 @@ void SfxStatusBarControl::StateChanged
DBG_MEMTEST();
DBG_ASSERT( pBar != 0, "setting state to dangling StatusBar" );
- if ( eState == SFX_ITEM_AVAILABLE && pState->ISA(SfxStringItem) )
- pBar->SetItemText( nSID,
- PTR_CAST(SfxStringItem,pState)->GetValue() );
+ const SfxStringItem* pStr = PTR_CAST( SfxStringItem, pState );
+ if ( eState == SFX_ITEM_AVAILABLE && pStr )
+ pBar->SetItemText( nSID, pStr->GetValue() );
else
{
- DBG_ASSERT( eState != SFX_ITEM_AVAILABLE|| pState->ISA(SfxVoidItem),
+ DBG_ASSERT( eState != SFX_ITEM_AVAILABLE || pState->ISA(SfxVoidItem),
"wrong SfxPoolItem subclass in SfxStatusBarControl" );
pBar->SetItemText( nSID, String() );
}