-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This VERY trivial change fixes bug 10.  I am not entirely sure why someone
would have written the code the way it was, so I may have changed
something important.  There is still bizzare behavior if you double-click
in between words, (it selects the space and both words) but that's for
another day.  (hopefully tommorow) 

           
                                sam th               
                                [EMAIL PROTECTED]
                                        
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4k895t+kM0Mq9M/wRAgeiAKC1XQxs2fwMvZtkCEhUWsAxhn0eIwCgy1jj
4kNuDE3K161oZOjQblLnsE8=
=0J1e
-----END PGP SIGNATURE-----
Only in abi-mod/: core
Only in abi-mod/src: Linux_2.3.36_i386_DBG
Only in abi-mod/src: Linux_2.3.36_i386_OBJ
diff -ru -x CVS abi/src/text/fmt/xp/fv_View.cpp abi-mod/src/text/fmt/xp/fv_View.cpp
--- abi/src/text/fmt/xp/fv_View.cpp     Sat Jan 29 06:37:34 2000
+++ abi-mod/src/text/fmt/xp/fv_View.cpp Sat Jan 29 23:40:37 2000
@@ -769,26 +769,30 @@
                        UT_Bool bBetween = UT_isWordDelimiter(pSpan[offset]);
                        
                        // Needed so ctrl-right arrow will work
+                       // This is the code that was causing bug 10
+                       // There is still some weird behavior that should be 
+investigated
+
                        for (; offset < pgb.getLength(); offset++)
                        {
-                           if (!UT_isWordDelimiter(pSpan[offset]))
+                           if (!UT_isWordDelimiter(pSpan[offset]))
                                break;
                        }
                        
                        for (; offset < pgb.getLength(); offset++)
                        {
-                               if (!UT_isWordDelimiter(pSpan[offset]))
-                               {
-                                       if (bBetween)
-                                               break;
+                               if (UT_isWordDelimiter(pSpan[offset]))
+                               {                                 
+                                 if (bBetween)
+                                   break;
                                }
-                               else if (pSpan[offset] != ' ')
+                               else if (pSpan[offset] == ' ')
                                    break;
                                else
                                        bBetween = UT_TRUE;
                        }
 
-                       iPos = offset + pBlock->getPosition();
+
+                       iPos = offset + pBlock->getPosition();
                }
                break;
 

Reply via email to