Am 16.09.2010 um 15:32 schrieb Pavel Sanda:

> if you would like to push some enhancements into 2.0 this is the last call.

I propose the following patch to solve the issue with overlapping lines
for on the fly spell checker and change tracking. If anyone has a better idea...
... I'm not so proud of it but couldn't come up with anything better.

Stephan

Index: src/rowpainter.cpp
===================================================================
--- src/rowpainter.cpp  (Revision 35413)
+++ src/rowpainter.cpp  (Arbeitskopie)
@@ -841,7 +841,7 @@
                                = 
theFontMetrics(pi_.base.bv->buffer().params().getFont());
                        int const y_bar = change_running.deleted() ?
                                yo_ - fm.maxAscent() / 3 : yo_ + fm.maxAscent() 
/ 6;
-                       pi_.pain.line(change_last_x, y_bar, int(x_), y_bar,
+                       pi_.pain.line(change_last_x, y_bar+1, int(x_), y_bar+1,
                                change_running.color(), Painter::line_solid, 
0.5);
 
                        // Change might continue with a different author or type
@@ -901,7 +901,7 @@
                        = 
theFontMetrics(pi_.base.bv->buffer().params().getFont());
                int const y_bar = change_running.deleted() ?
                                yo_ - fm.maxAscent() / 3 : yo_ + fm.maxAscent() 
/ 6;
-               pi_.pain.line(change_last_x, y_bar, int(x_), y_bar,
+               pi_.pain.line(change_last_x, y_bar+1, int(x_), y_bar+1,
                        change_running.color(), Painter::line_solid, 0.5);
                change_running.setUnchanged();
        }

Reply via email to