[EMAIL PROTECTED] wrote:
Author: bpeng
Date: Wed Dec  6 23:51:39 2006
New Revision: 16194

URL: http://www.lyx.org/trac/changeset/16194
Log:
Fix a button hover bug, remove button frame

Modified:
    lyx-devel/trunk/src/BufferView.C
    lyx-devel/trunk/src/LColor.C

Modified: lyx-devel/trunk/src/BufferView.C
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/BufferView.C?rev=16194
==============================================================================
--- lyx-devel/trunk/src/BufferView.C (original)
+++ lyx-devel/trunk/src/BufferView.C Wed Dec  6 23:51:39 2006
@@ -1069,6 +1069,10 @@
                                need_update |= inset->setMouseHover(true);
                        last_inset = inset;
                }
+               // if in singlepar mode, update to get a full screen repaint.
+               // otherwise, buttons outside of the current paragraph will not 
be redrawn.
+               if (need_update && metrics_info_.singlepar)
+                       update();

You should use updateMetrics(false) directly instead because update() will check for other things like FitCursor() which could result in a repositioning of the screen.

Abdel.

Reply via email to