]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
adjust insetcollapsable and insetcharstyle metrics (bug 1798, bug 1804)
[features.git] / src / insets / insettext.C
index 0fa0568942071d8051cba650fee027ca53e8c476..3d8515665d7d356333a2ef3020b4ab225e96a0a1 100644 (file)
@@ -213,7 +213,7 @@ void InsetText::drawSelection(PainterInfo & pi, int x, int y) const
 
 void InsetText::drawFrame(Painter & pain, int x, int y) const
 {
-       int const w = text_.width() + border_;
+       int const w = text_.width() + 2 * border_;
        int const a = text_.ascent() + border_;
        int const h = a + text_.descent() + border_;
        pain.rectangle(x, y - a, w, h, frameColor());