summaryrefslogtreecommitdiff
path: root/svtools/source/edit/textview.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2002-07-23 12:00:50 +0000
committerStephan Bergmann <sb@openoffice.org>2002-07-23 12:00:50 +0000
commitdc84688a6f8bb9c91d8534c848c4fb317ba32df9 (patch)
tree7f34b8d6716a0f739251a71f725e83f3f03779d3 /svtools/source/edit/textview.cxx
parentf2f3173faaedb99025feb099f55c9f19bb42ed5f (diff)
#100004# Fixed broadcasting TEXT_HINT_VIEWSCROLLED in TextView::Scroll.
Diffstat (limited to 'svtools/source/edit/textview.cxx')
-rw-r--r--svtools/source/edit/textview.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx
index 945df77123d1..1b49483df8ca 100644
--- a/svtools/source/edit/textview.cxx
+++ b/svtools/source/edit/textview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textview.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: mt $ $Date: 2002-07-02 10:59:44 $
+ * last change: $Author: sb $ $Date: 2002-07-23 13:00:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1073,6 +1073,8 @@ void TextView::Scroll( long ndX, long ndY )
if ( bVisCursor && !mbReadOnly )
mpCursor->Show();
}
+
+ mpTextEngine->Broadcast( TextHint( TEXT_HINT_VIEWSCROLLED ) );
}
void TextView::Undo()
@@ -1697,10 +1699,7 @@ void TextView::ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bSpec
aNewStartPos.Y() = nYMax;
if ( aNewStartPos != maStartDocPos )
- {
Scroll( -(aNewStartPos.X() - maStartDocPos.X()), -(aNewStartPos.Y() - maStartDocPos.Y()) );
- mpTextEngine->Broadcast( TextHint( TEXT_HINT_VIEWSCROLLED ) );
- }
}
Point aPoint( GetWindowPos( aEditCursor.TopLeft() ) );