commit 72837fec5ceaf48533daa627e00af387f20bd248
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Mon Sep 5 11:04:11 2016 +0200

    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.
---
 src/insets/InsetText.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h
index 2834019..ac0cf69 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; }
        ///

Reply via email to