X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPhantom.cpp;h=4771cb83ee42899992846295e967d8b67141d664;hb=a6b07608d8e9de24383d3ebaec20b6b265ed9314;hp=dbce804356bf29480b0a8abe5068e5d41612ae80;hpb=c19c21034b71fb531cf07839df3370bd76382452;p=features.git diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index dbce804356..4771cb83ee 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -194,10 +194,10 @@ void InsetPhantom::draw(PainterInfo & pi, int x, int y) const // | | | | // x1 x2 x3 x4 - x = x + TEXT_TO_INSET_OFFSET; + x += leftOffset(pi.base.bv); int const x1 = x; int const x2 = x + arrow_size; - int const x4 = x + dim.wid - 2 * TEXT_TO_INSET_OFFSET; + int const x4 = x + dim.wid - leftOffset(pi.base.bv) - rightOffset(pi.base.bv); int const x3 = x4 - arrow_size; int const y2 = y + (dim.des - dim.asc) / 2; @@ -367,7 +367,7 @@ int InsetPhantom::docbook(odocstream & os, OutputParams const & runparams) const } -docstring InsetPhantom::xhtml(XHTMLStream &, OutputParams const &) const +docstring InsetPhantom::xhtml(XMLStream &, OutputParams const &) const { return docstring(); }