From: Uwe Stöhr Date: Sun, 1 Feb 2009 18:48:48 +0000 (+0000) Subject: InsetPhantom.cpp: metrics fix for the horizontal arrow X-Git-Tag: 2.0.0~7340 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6e506647ab4167024bb5b44818ac19580148b933;p=features.git InsetPhantom.cpp: metrics fix for the horizontal arrow git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28308 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index be77f7e7d7..65634ef455 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -155,6 +155,9 @@ void InsetPhantom::draw(PainterInfo & pi, int x, int y) const { // draw the text InsetText::draw(pi, x, y); + + // draw the inset marker + drawMarkers(pi, x, y); // draw the arrow(s) static int const arrow_size = 4; @@ -208,9 +211,10 @@ void InsetPhantom::draw(PainterInfo & pi, int x, int y) const // | | | | // x1 x2 x3 x4 + x = x + TEXT_TO_INSET_OFFSET; int const x1 = x; int const x2 = x + arrow_size; - int const x4 = x + dim.wid; + int const x4 = x + dim.wid - 2 * TEXT_TO_INSET_OFFSET; int const x3 = x4 - arrow_size; int const y2 = y + (dim.des - dim.asc) / 2; @@ -228,8 +232,6 @@ void InsetPhantom::draw(PainterInfo & pi, int x, int y) const // joining line pi.pain.line(x1, y2, x4, y2, Color_added_space); } - - drawMarkers(pi, x, y); }