5 Oct 16:49
[patch] Selection painting in Insets
From: Vincent van Ravesteijn <V.F.vanRavesteijn@...>
Subject: [patch] Selection painting in Insets
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 14:51:16 GMT
Subject: [patch] Selection painting in Insets
Newsgroups: gmane.editors.lyx.devel
Date: 2008-10-05 14:51:16 GMT
This patch solves some problems with painting selections in Insets. These are: - multiline selections paint in left margin of the main text (bug 5270), - the margins to the left and right side of the inset are not correct, - wrong painting of e.g. a multiline selection of a caption in a float. I renamed the Row::left_margin_sel back to Row::begin_margin_sel because of RTL text. I added a FIXME to BufferView::leftMargin and ::rightMargin that they are different for RTL texts. I did some cosmetics (lines <= 80 char, consts). Vincent
Index: src/BufferView.h
===================================================================
--- src/BufferView.h (revision 26708)
+++ src/BufferView.h (working copy)
@@ -92,9 +92,11 @@
///
void setFullScreen(bool full_screen) { full_screen_ = full_screen; }
+ //FIXME: In RTL text this is the left-margin
/// right margin
int rightMargin() const;
+ //FIXME: In RTL text this is the right-margin
(Continue reading)
RSS Feed