summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-03-31 09:30:17 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-03-31 09:46:35 +0200
commitf4fa202b31277276dc4f05046c82152c0830ef21 (patch)
tree31b9d0b097052e779a3934ab617ea3b13e819042
parent6f455018b4b4a52314c837b50a40e653866628ce (diff)
cui: unused code in SvxAreaTabPage::ClickGradientHdl_Impl
This is unused since commit 5627d0bdaf1385df9d90dcec3a319c82c089c2ca (Fix #86988#: Redesign of dialogs, 2001-05-15), and just getting rid of it avoids a crash on Insert -> Frame -> Area -> Gradient in Writer. Copy&paste of problematic code, take 2. Change-Id: I5be2b0b3280826d50ea196f95f8ac92d7856ae7d
-rw-r--r--cui/source/tabpages/tparea.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 73be1ba5f08b..74b748d10185 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -1880,21 +1880,6 @@ void SvxAreaTabPage::ClickGradientHdl_Impl()
// Controls for Hatch-Background
m_pFlHatchBckgrd->Hide();
- // set table text
- OUString aString( CUI_RES( RID_SVXSTR_TABLE ) ); aString += ": ";
- INetURLObject aURL( pGradientList->GetPath() );
-
- aURL.Append( pGradientList->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();
-
ModifyGradientHdl_Impl( this );
ModifyStepCountHdl_Impl( m_pTsbStepCount );
}