]> git.lyx.org Git - features.git/commit
Aesthetics: off-by-one in line drawing
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 23 Jul 2018 15:07:48 +0000 (17:07 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 23 Jul 2018 15:16:03 +0000 (17:16 +0200)
commitad954a32a525828bd03bf2c8241252e60394cbc3
tree8be0929ddfd8b4b647a299572b886206890d39b3
parent022228e56f2a58d3a6a79af26e38470ebd74dcaf
Aesthetics: off-by-one in line drawing

It is a general problem when doing graphics to know where a line
begins and where it ends pixel-wise. At the instigation of Scott, and
with the use of the kmag magnifier, this commit corrects 3 areas:

* foreign marks were larger than the row element they were supposed to
  mark. This could lead to moving lines, depending on paint ordering.

* visible spaces were drawn outside of their box (select a single
  space to see this).

* the `L' blinking caret would leave a cursor dropping because the
  horizontal part was too wide.
src/RowPainter.cpp
src/frontends/qt4/GuiWorkArea.cpp
src/insets/InsetSpace.cpp