]> git.lyx.org Git - lyx.git/blobdiff - src/Row.cpp
Fix editorial whitespace error
[lyx.git] / src / Row.cpp
index 3557957a77a8d79ea77fb7d35925b5b636ef54e0..db1bd2883cac54dd9acccfa50e9fa72496f41d2e 100644 (file)
@@ -115,7 +115,7 @@ pos_type Row::Element::x2pos(int &x) const
        case SPACE:
                // those elements contain only one position. Round to
                // the closest side.
-               if (x > full_width() / 2) {
+               if (x > (full_width() + 1) / 2) {
                        x = int(full_width());
                        i = !isRTL();
                } else {
@@ -275,7 +275,7 @@ ostream & operator<<(ostream & os, Row const & row)
           << " ascent: " << row.dim_.asc
           << " descent: " << row.dim_.des
           << " separator: " << row.separator
-          << " label_hfill: " << row.label_hfill 
+          << " label_hfill: " << row.label_hfill
           << " row_boundary: " << row.right_boundary() << "\n";
        double x = row.left_margin;
        Row::Elements::const_iterator it = row.elements_.begin();