Am 04.06.2007 um 22:00 schrieb Michael Gerz:

[EMAIL PROTECTED] schrieb:
Author: sts
Date: Mon Jun  4 20:41:56 2007
New Revision: 18668

URL: http://www.lyx.org/trac/changeset/18668
Log:
* Make the selection drawing algorithm in Text aware of RTL and LTR mixed in a paragraph
  (fixes bug 3550: Selection in mixed RTL-LTR paragraphs is broken)

Modified: lyx-devel/trunk/src/Text.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/Text.cpp? rev=18668 ===================================================================== =========
--- lyx-devel/trunk/src/Text.cpp (original)
+++ lyx-devel/trunk/src/Text.cpp Mon Jun  4 20:41:56 2007
 +              if (middleTop < middleBottom) {
+                       // draw middle rectangle
+ pi.pain.fillRectangle(x, middleTop, + tm.width(), middleBottom - middleTop, + Color::selection);
+               }
+
+void Text::drawRowSelection(PainterInfo & pi, int x, Row const & row, + DocIterator const & beg, DocIterator const & end, + bool drawOnBegMargin, bool drawOnEndMargin) const

Modified: lyx-devel/trunk/src/Text.h
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/Text.h? rev=18668 ===================================================================== =========
--- lyx-devel/trunk/src/Text.h (original)
+++ lyx-devel/trunk/src/Text.h Mon Jun  4 20:41:56 2007
@@ -407,6 +407,11 @@
        void charInserted();
        /// set 'number' font property
        void number(Cursor & cur);
+       /// draw selection for a single row
+       void drawRowSelection(PainterInfo & pi, int x, Row const & row,
+ DocIterator const & beg, DocIterator const & end, + bool drawOnBegMargin, bool drawOnEndMargin) const;
+

Impressive indentations!

Bad mail reader with a tab width != 2

Stefan

Attachment: PGP.sig
Description: Signierter Teil der Nachricht

Reply via email to