]> git.lyx.org Git - lyx.git/commitdiff
Always paint text decoration when painting inset.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 23 May 2019 09:30:35 +0000 (11:30 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 May 2019 08:36:13 +0000 (10:36 +0200)
Fixes bug #11402.

(cherry picked from commit 621c908f85650cc086b1d155062885eba016d1fa)

src/RowPainter.cpp
status.23x

index 3f367ce4d1237d82c5c8b2662494e058232cf8a2..cc3ea895d5fcb2ca3f932b6912622a3979e6a7cf 100644 (file)
@@ -118,6 +118,7 @@ void RowPainter::paintInset(Row::Element const & e) const
        e.inset->drawBackground(pi_, x1, yo_);
        e.inset->drawSelection(pi_, x1, yo_);
        e.inset->draw(pi_, x1, yo_);
+       paintTextDecoration(e);
 
        // Restore full_repaint status.
        pi_.full_repaint = pi_full_repaint;
@@ -585,7 +586,6 @@ void RowPainter::paintText()
 
                case Row::INSET:
                        paintInset(e);
-                       paintTextDecoration(e);
                        break;
 
                case Row::SPACE:
index 7bd3ebbcc7d65d4b01de34f7735688b34b8dbbb3..3d5481a77ff5032654cbea0a30bb34523e8fc3c6 100644 (file)
@@ -216,6 +216,7 @@ What's new
 - Handle some cases where the change bar in the margin did not get updated 
   (bug 11396).
 
+- Handle some cases where underline across insets did not painted (bug 11402).
 
 
 * INTERNALS