From: Jean-Marc Lasgouttes Date: Mon, 5 Sep 2016 09:04:11 +0000 (+0200) Subject: Amend commit e194c9ce279 X-Git-Tag: 2.3.0alpha1~1074 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=72837fec5ceaf48533daa627e00af387f20bd248;p=features.git Amend commit e194c9ce279 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. --- diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 28340193c7..ac0cf69998 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -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; } ///