Kaydet (Commit) 5732b24b authored tarafından Tor Lillqvist's avatar Tor Lillqvist

assert() is too harsh here I think, use SAL_WARN_IF() instead

I run into the assertion now in TiledLibreOffice, but if I drop the
assert(), it still works. So let's just print a warning (that
everybody will cheerfully ignore, ha ha) instead. I have no idea what
this code actually is doing...

(Originally the code had DBG_ASSERT(), which despite its name also
just prints a warning, which I changed to a real assert() in
8293b293 for some reason.)

Change-Id: I928078aaf3648c8d04c59f271504c7d3b02e1bb5
üst 85163440
......@@ -628,7 +628,7 @@ sal_Bool SfxInterface::IsObjectBarVisible(sal_uInt16 nNo) const
const SfxInterface* SfxInterface::GetRealInterfaceForSlot( const SfxSlot *pRealSlot ) const
{
assert( pImpData->bRegistered );
SAL_WARN_IF( !pImpData->bRegistered, "sfx2.control", "Interface not registered" );
const SfxInterface* pInterface = this;
......
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