]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
Add some missing files to autoconf's dist
[lyx.git] / src / Row.cpp
index cab3ab750c0f17fccc0df093bc07d65ecbf1dae3..aeede91d85e7d0e61371eec64cc2edffc56bab5d 100644 (file)
@@ -47,10 +47,10 @@ double Row::Element::pos2x(pos_type const i) const
 
        double w = 0;
        //handle first the two bounds of the element
-       if (i == pos || type != STRING)
-               w = rtl ? width() : 0;
-       else if (i == endpos)
+       if (i == endpos && !(inset && inset->lyxCode() == SEPARATOR_CODE))
                w = rtl ? 0 : width();
+       else if (i == pos || type != STRING)
+               w = rtl ? width() : 0;
        else {
                FontMetrics const & fm = theFontMetrics(font);
                w = fm.pos2x(str, i - pos, font.isVisibleRightToLeft());
@@ -250,7 +250,8 @@ ostream & operator<<(ostream & os, Row const & row)
           << " ascent: " << row.dim_.asc
           << " descent: " << row.dim_.des
           << " separator: " << row.separator
-          << " label_hfill : " << row.label_hfill << "\n";
+          << " label_hfill: " << row.label_hfill 
+          << " row_boundary: " << row.right_boundary() << "\n";
        double x = row.x;
        Row::Elements::const_iterator it = row.elements_.begin();
        for ( ; it != row.elements_.end() ; ++it) {