summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-10-16 06:47:14 +0000
committerjp <jp@openoffice.org>2001-10-16 06:47:14 +0000
commit65b74c215227513170d3ff63a11a4a83efee921a (patch)
treec42aee84f162a298b7bf8aa03a65a2721cbe69b2 /svx/source/tbxctrls
parent844848fb37f4cb17a0fcc4300af659b4ecf02a81 (diff)
Bug #92774#: EndTracking calls the SelectHdl, disable this call by set a empty SelectHdl
Diffstat (limited to 'svx/source/tbxctrls')
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx25
1 files changed, 11 insertions, 14 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 836ee187181a..6c7d5e62491a 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: lboxctrl.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: jp $ $Date: 2001-10-12 15:54:54 $
+ * last change: $Author: jp $ $Date: 2001-10-16 07:47:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,16 +119,6 @@
class SvxPopupWindowListBox;
-#define A2S(x) String::CreateFromAscii(x)
-
-/////////////////////////////////////////////////////////////////
-
-static void ReleaseTbxBtn_Impl( ToolBox &rBox, const Point &rPos )
-{
- MouseEvent aMEvt( rPos, 1, 0, 0, 0 );
- rBox.Tracking( TrackingEvent( aMEvt, ENDTRACK_END ) );
-}
-
/////////////////////////////////////////////////////////////////
class SvxPopupWindowListBox : public SfxPopupWindow
@@ -285,7 +275,7 @@ void SvxListBoxControl::Impl_SetInfo( USHORT nCount )
{
DBG_ASSERT( pPopupWin, "NULL pointer, PopupWindow missing" );
String aText( aActionStr );
- aText.SearchAndReplaceAll( A2S("$(ARG1)"), String::CreateFromInt32( nCount ) );
+ aText.SearchAndReplaceAllAscii( "$(ARG1)", String::CreateFromInt32( nCount ) );
pPopupWin->GetInfo().SetText( aText );
}
@@ -359,7 +349,14 @@ SfxPopupWindow* SvxUndoRedoControl::CreatePopupWindow()
Rectangle aItemRect( rBox.GetItemRect( nId ) );
aItemRect.Bottom() += aItemRect.GetHeight() - 2;
- ReleaseTbxBtn_Impl( rBox, rBox.GetItemRect( nId ).TopLeft() );
+ {
+ MouseEvent aMEvt( aItemRect.TopLeft(), 1, 0, 0, 0 );
+ Link aSave( rBox.GetSelectHdl() );
+ rBox.SetSelectHdl( Link() );
+ rBox.Tracking( TrackingEvent( aMEvt, ENDTRACK_END ) );
+ rBox.SetSelectHdl( aSave );
+ }
+
pPopupWin->StartPopupMode( aItemRect );
pPopupWin->StartSelection();
}