]> git.lyx.org Git - features.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>
Thu, 18 Jun 2020 13:48:30 +0000 (15:48 +0200)
Fixes bug #11402.

src/RowPainter.cpp

index a486c0e97e9223da7a0f7c9a3109a1a7ac8d5856..b05b143fb481e2a00b2214b6bcc3eebd75612847 100644 (file)
@@ -119,6 +119,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;
@@ -551,7 +552,6 @@ void RowPainter::paintText()
 
                case Row::INSET:
                        paintInset(e);
-                       paintTextDecoration(e);
                        break;
 
                case Row::SPACE: