This a bug related to bug 776 but was unreported. Instead of reporting it
it and fixing it, this just fixes it.
The bug is that after a font change, pressing the forward arrow key does
not move the cursor forward. Pressing it again does..
This patch fixes that so that pressing the forward arrow key after a
font change works.
Apply the patch to the abi directory. It makes another small change to
fv_View.cpp
Cheers
Martin
diff -Naur --exclude=CVS abi/src/text/fmt/xp/fv_View.cpp
abi-new2/src/text/fmt/xp/fv_View.cpp
--- abi/src/text/fmt/xp/fv_View.cpp Mon Mar 13 10:05:35 2000
+++ abi-new2/src/text/fmt/xp/fv_View.cpp Mon Mar 13 10:03:44 2000
@@ -948,10 +948,23 @@
PT_DocPosition iPoint = getPoint();
if (!_charMotion(bForward, count))
- _setPoint(iPoint);
+ {
+ _setPoint(iPoint);
+ }
else
+ {
+ PT_DocPosition iPoint1 = getPoint();
+ if ( iPoint1 == iPoint )
+ {
+ if(!_charMotion(bForward, count))
+ {
+ _setPoint(iPoint);
+ notifyListeners(AV_CHG_MOTION);
+ return;
+ }
+ }
_updateInsertionPoint();
-
+ }
notifyListeners(AV_CHG_MOTION);
}