diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-08-27 15:23:59 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-08-27 15:23:59 +0000 |
commit | 987e7321240b3cf415b40603224fc46838d024eb (patch) | |
tree | 8083202956db77670699dcd30859cad23e81a99e /svtools/source | |
parent | 0d299cf3742e00d37814efdcd6481e7e3ca873c2 (diff) |
#90565# do not capture the mouse without reason
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 84e1c837226d..94b7d8089534 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -2,9 +2,9 @@ * * $RCSfile: datwin.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: fs $ $Date: 2001-07-25 14:19:34 $ + * last change: $Author: pl $ $Date: 2001-08-27 16:23:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -282,8 +282,13 @@ BrowserDataWin::~BrowserDataWin() { if( pDtorNotify ) *pDtorNotify = TRUE; - if ( IsMouseCaptured() ) - ReleaseMouse(); +/* + * #90565# nobody knows why this was done. Since + * the mouse must NOT be captured on startDrag + * let's comment this out. + */ +// if ( IsMouseCaptured() ) +// ReleaseMouse(); } //------------------------------------------------------------------- @@ -505,7 +510,12 @@ void BrowserDataWin::Command( const CommandEvent& rEvt ) void BrowserDataWin::MouseButtonDown( const MouseEvent& rEvt ) { aLastMousePos = OutputToScreenPixel( rEvt.GetPosPixel() ); - CaptureMouse(); +/* + * #90565# nobody knows why this was done. Since + * the mouse must NOT be captured on startDrag + * let's comment this out. + */ +// CaptureMouse(); GetParent()->MouseButtonDown( BrowserMouseEvent( this, rEvt ) ); } @@ -519,9 +529,14 @@ void BrowserDataWin::MouseMove( const MouseEvent& rEvt ) return; aLastMousePos = aNewPos; +/* + * #90565# nobody knows why this was done. Since + * the mouse must NOT be captured on startDrag + * let's comment this out. + */ // Paint-Probleme abfangen - if ( !IsMouseCaptured() ) - return; +// if ( !IsMouseCaptured() ) +// return; // transform to a BrowseEvent GetParent()->MouseMove( BrowserMouseEvent( this, rEvt ) ); @@ -558,9 +573,14 @@ void BrowserDataWin::MouseButtonUp( const MouseEvent& rEvt ) Point aNewPos = OutputToScreenPixel( rEvt.GetPosPixel() ); aLastMousePos = aNewPos; +/* + * #90565# nobody knows why this was done. Since + * the mouse must NOT be captured on startDrag + * let's comment this out. + */ // Paint-Probleme abfangen - if ( !IsMouseCaptured() ) - return; +// if ( !IsMouseCaptured() ) +// return; // Move an die aktuelle Position simulieren MouseMove( rEvt ); |