The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 4b706051b73ece2d806bc8b4daf430f2e0be6995
Author: Scott Kostyshak <[email protected]>
Date:   Wed Dec 12 03:44:38 2012 -0500

    Fix a bug when selecting a cell in InsetTabular
    
    Fix the following bug:
    When in tabular, enter "ab" in a cell. Place the cursor before "b". Hold
    shift and press <right>, then (still holding shift) <right> again. On
    the second <right> nothing appears to happen.
    
    Related to #1802.

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index ec1cd54..a38c4b2 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4029,6 +4029,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                        if (select_whole && !empty_cell){
                                getText(cur.idx())->selectAll(cur);
                                cur.dispatched();
+                               cur.screenUpdateFlags(Update::Force | 
Update::FitCursor);
                                break;
                        }
 

commit 5cc1adf7c7a348aae4f9471d7edb41c8570311d7
Author: Scott Kostyshak <[email protected]>
Date:   Wed Dec 12 03:44:17 2012 -0500

    Fix another selection bug in InsetTabular
    
    Fix #4981:
    In tabular if a vertical selection is made with the keyboard (e.g.
    LFUN_UP_SELECT), the selection is drawn if there are two cells selected.
    Previously, the selection would be drawn only if there were more than
    two selected.

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 532773e..ec1cd54 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4093,6 +4093,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                        cur.pit() = cur.lastpit();
                        cur.pos() = cur.lastpos();
                        cur.setCurrentFont();
+                       cur.screenUpdateFlags(Update::Force | 
Update::FitCursor);
                        return;
                }
                cur.screenUpdateFlags(Update::Force | Update::FitCursor);
@@ -4131,6 +4132,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                        cur.pit() = 0;
                        cur.pos() = cur.lastpos();
                        cur.setCurrentFont();
+                       cur.screenUpdateFlags(Update::Force | 
Update::FitCursor);
                        return;
                }
                cur.screenUpdateFlags(Update::Force | Update::FitCursor);

commit 776e66688f65955b6baa556f83ca34e13c7484ff
Author: Scott Kostyshak <[email protected]>
Date:   Wed Dec 12 03:43:53 2012 -0500

    Fix a selection bug in InsetTabular
    
    If you have a selection across cells in tabular, moving the cursor
    vertically up or down (e.g. LFUN_UP) now removes the drawn selection.
    Before, the selection was set to false but it was not repainted.

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 6bdf72b..532773e 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -4095,7 +4095,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                        cur.setCurrentFont();
                        return;
                }
-               cur.screenUpdateFlags(Update::FitCursor);
+               cur.screenUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
        case LFUN_UP_SELECT:
@@ -4133,7 +4133,7 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & 
cmd)
                        cur.setCurrentFont();
                        return;
                }
-               cur.screenUpdateFlags(Update::FitCursor);
+               cur.screenUpdateFlags(Update::Force | Update::FitCursor);
                break;
 
 //     case LFUN_SCREEN_DOWN: {

-----------------------------------------------------------------------

Summary of changes:
 src/insets/InsetTabular.cpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to