diff --git a/src/Row.cpp b/src/Row.cpp index 68ab98414f..418e0c61d8 100644 --- a/src/Row.cpp +++ b/src/Row.cpp @@ -336,7 +336,7 @@ ostream & operator<<(ostream & os, Row const & row) << " descent: " << row.dim_.des << " separator: " << row.separator << " label_hfill: " << row.label_hfill - << " right_boundary: " << row.right_boundary() + << " end_boundary: " << row.end_boundary() << " flushed: " << row.flushed() << "\n"; // We cannot use the operator above, unfortunately double x = row.left_margin; diff --git a/src/Row.h b/src/Row.h index a4be0ad951..8dc41120b9 100644 --- a/src/Row.h +++ b/src/Row.h @@ -206,9 +206,9 @@ public: /// pos_type endpos() const { return end_; } /// - void right_boundary(bool b) { right_boundary_ = b; } + void end_boundary(bool b) { end_boundary_ = b; } /// - bool right_boundary() const { return right_boundary_; } + bool end_boundary() const { return end_boundary_; } /// void flushed(bool b) { flushed_ = b; } /// @@ -368,7 +368,7 @@ private: /// one behind last pos covered by this row pos_type end_ = 0; // Is there a boundary at the end of the row (display inset...) - bool right_boundary_ = false; + bool end_boundary_ = false; // Shall the row be flushed when it is supposed to be justified? bool flushed_ = false; /// Row dimension. diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 53b683861f..00fb217c0a 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1059,7 +1059,7 @@ void cleanupRow(Row & row, bool at_end) if (!at_end && !row.flushed()) row.back().rtrim(); // boundary exists when there was no space at the end of row - row.right_boundary(!at_end && row.back().endpos == row.endpos()); + row.end_boundary(!at_end && row.back().endpos == row.endpos()); // make sure that the RTL elements are in reverse ordering row.reverseRTL(); } @@ -1368,7 +1368,7 @@ pos_type TextMetrics::getPosNearX(Row const & row, int & x, || inset->lyxCode() == SEPARATOR_CODE)) pos = row.back().pos; else - boundary = row.right_boundary(); + boundary = row.end_boundary(); } x += xo - offset;