The branch, str-metrics, has been updated. - Log -----------------------------------------------------------------
commit 0e5267c9a63cb1e1f0894e50adfadd392bb9f460 Author: Jean-Marc Lasgouttes <[email protected]> Date: Mon Jan 27 23:48:45 2014 +0100 Trivial offset error in e80743 diff --git a/src/Row.cpp b/src/Row.cpp index 86b7d06..15af2c2 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -104,7 +104,7 @@ pos_type Row::Element::x2pos(double &x, bool const low) const x = x2; } - //lyxerr << "=> p=" << i << " x=" << x << endl; + //lyxerr << "=> p=" << pos + i << " x=" << x << endl; return pos + i; } diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index a7366b5..3df118e 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1315,7 +1315,7 @@ pos_type TextMetrics::getPosNearX(pit_type const pit, return min(col, end - 1 - row.pos()); #endif // 0 #endif // KEEP_OLD_METRICS_CODE - return pos - row.pos(); + return pos; } ----------------------------------------------------------------------- Summary of changes: src/Row.cpp | 2 +- src/TextMetrics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Repository for new features
