X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.cpp;h=8d89f64e1c06f17af0e315faecbab718889f4da3;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=70e3dcafc3ac3683d72d4d9555e2b7a59df19fc3;hpb=01f0ab64a76a422ad7a7b916f3564b37e8feab94;p=lyx.git diff --git a/src/Row.cpp b/src/Row.cpp index 70e3dcafc3..8d89f64e1c 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -115,14 +115,13 @@ 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()) { + if (x > (full_width() + 1) / 2) { x = int(full_width()); i = !isRTL(); } else { x = 0; i = isRTL(); } - } //lyxerr << "=> p=" << pos + i << " x=" << x << endl; return pos + i;