]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
PDF-form.lyx: add a note
[lyx.git] / src / Row.cpp
index 9d944516843c2325e5617b4bd389e6857efcfc9a..4a2f2e58486948bd0cc8990dfd71839a5260c32a 100644 (file)
@@ -47,7 +47,8 @@ double Row::Element::pos2x(pos_type const i) const
 
        double w = 0;
        //handle first the two bounds of the element
-       if (i == endpos && !(inset && inset->lyxCode() == SEPARATOR_CODE))
+       if (i == endpos && type != VIRTUAL
+               && !(inset && inset->lyxCode() == SEPARATOR_CODE))
                w = rtl ? 0 : full_width();
        else if (i == pos || type != STRING)
                w = rtl ? full_width() : 0;