]> git.lyx.org Git - lyx.git/commitdiff
Amend commit e194c9ce279
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 5 Sep 2016 09:04:11 +0000 (11:04 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 5 Sep 2016 09:06:01 +0000 (11:06 +0200)
As noted in the log, this commit was a bit radical and needs some
adjustments (which was expected, actually).

Let InsetText do their own background drawing.

Fixes bug #10359.

src/insets/InsetText.h

index 28340193c7705d814cf5e8f6f096258e9df9bf46..ac0cf699982245ee80670b6a43302a78f6f3bb08 100644 (file)
@@ -59,6 +59,8 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
+       /// Drawing background is handled in draw
+       virtual void drawBackground(PainterInfo &, int, int) const {}
        ///
        bool editable() const { return true; }
        ///