Kaydet (Commit) 2032e9f5 authored tarafından Miklos Vajna's avatar Miklos Vajna

cui: unused code in SvxAreaTabPage::ClickBitmapHdl_Impl

This is unused since commit 5627d0bd
(Fix #86988#: Redesign of dialogs, 2001-05-15), and just getting rid of
it avoids a crash on Insert -> Frame -> Area -> Bitmap in Writer.

Copy&paste of problematic code, take 3.

Change-Id: Ide488585bbc6aed157fa6058bcfd1cd0a6d2c7aa
üst f4fa202b
......@@ -2061,21 +2061,6 @@ void SvxAreaTabPage::ClickBitmapHdl_Impl()
m_pBxBitmap->Show();
// set table text
OUString aString( CUI_RES( RID_SVXSTR_TABLE ) ); aString += ": ";
INetURLObject aURL( pBitmapList->GetPath() );
aURL.Append( pBitmapList->GetName() );
DBG_ASSERT( aURL.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );
if( aURL.getBase().getLength() > 18 )
{
aString += aURL.getBase().copy( 0, 15 );
aString += "...";
}
else
aString += aURL.getBase();
ModifyBitmapHdl_Impl( this );
ModifyTileHdl_Impl( m_pTsbOriginal );
}
......
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