diff options
author | Carsten Driesner <cd@openoffice.org> | 2002-12-02 09:32:23 +0000 |
---|---|---|
committer | Carsten Driesner <cd@openoffice.org> | 2002-12-02 09:32:23 +0000 |
commit | 1baab5e30d4324b595809632ca1cb288fcda08f4 (patch) | |
tree | 29f2c267a4f0e9e8d7ff7e390cb173892d93c676 | |
parent | e846aa72f971e6e603a653a2dce57bf5653d5d3f (diff) |
#96020# Use clip region for HideFocus call to prevent drawing over scrollbars
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index f9a986db0299..11c17de9b9c2 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svimpbox.cxx,v $ * - * $Revision: 1.24 $ + * $Revision: 1.25 $ * - * last change: $Author: fs $ $Date: 2002-09-18 08:56:52 $ + * last change: $Author: cd $ $Date: 2002-12-02 10:32:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -618,7 +618,13 @@ void SvImpLBox::SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect ) void SvImpLBox::ShowCursor( BOOL bShow ) { if( !bShow || !pCursor || !pView->HasFocus() ) + { + Region aOldClip( pView->GetClipRegion()); + Region aClipRegion( GetClipRegionRect() ); + pView->SetClipRegion( aClipRegion ); pView->HideFocus(); + pView->SetClipRegion( aOldClip ); + } else { long nY = GetEntryLine( pCursor ); |